From ff1e980efee31c87cce923288d0797c1fb894763 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Fri, 5 Jul 2024 16:34:00 -0700 Subject: [PATCH] Fix spelling of persistence --- ff_ioman.c | 8 ++++---- include/ff_ioman.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ff_ioman.c b/ff_ioman.c index a2d7b1c..b0662f7 100644 --- a/ff_ioman.c +++ b/ff_ioman.c @@ -419,7 +419,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager, if( ( ucMode == FF_MODE_READ ) && ( pxMatchingBuffer->ucMode == FF_MODE_READ ) ) { pxMatchingBuffer->usNumHandles += 1; - pxMatchingBuffer->usPersistance += 1; + pxMatchingBuffer->usPersistence += 1; break; } @@ -435,7 +435,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager, } pxMatchingBuffer->usNumHandles = 1; - pxMatchingBuffer->usPersistance += 1; + pxMatchingBuffer->usPersistence += 1; break; } @@ -459,7 +459,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager, if( ( pxRLUBuffer == NULL ) || ( pxBuffer->ulLRU > pxRLUBuffer->ulLRU ) || - ( ( pxBuffer->ulLRU == pxRLUBuffer->ulLRU ) && ( pxBuffer->usPersistance > pxRLUBuffer->usPersistance ) ) ) + ( ( pxBuffer->ulLRU == pxRLUBuffer->ulLRU ) && ( pxBuffer->usPersistence > pxRLUBuffer->usPersistence ) ) ) { pxRLUBuffer = pxBuffer; } @@ -497,7 +497,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager, } pxRLUBuffer->ucMode = ( ucMode & FF_MODE_RD_WR ); - pxRLUBuffer->usPersistance = 1; + pxRLUBuffer->usPersistence = 1; pxRLUBuffer->ulLRU = 0; pxRLUBuffer->usNumHandles = 1; pxRLUBuffer->ulSector = ulSector; diff --git a/include/ff_ioman.h b/include/ff_ioman.h index 103b279..b324d87 100644 --- a/include/ff_ioman.h +++ b/include/ff_ioman.h @@ -213,7 +213,7 @@ bModified : 1, /* If the sector was modified since read. */ bValid : 1; /* Initially FALSE. */ uint16_t usNumHandles; /* Number of objects using this buffer. */ - uint16_t usPersistance; /* For the persistance algorithm. */ + uint16_t usPersistence; /* For the persistence algorithm. */ } FF_Buffer_t; typedef struct