Skip to content

Commit ff1e980

Browse files
committed
Fix spelling of persistence
1 parent 14d891d commit ff1e980

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ff_ioman.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
419419
if( ( ucMode == FF_MODE_READ ) && ( pxMatchingBuffer->ucMode == FF_MODE_READ ) )
420420
{
421421
pxMatchingBuffer->usNumHandles += 1;
422-
pxMatchingBuffer->usPersistance += 1;
422+
pxMatchingBuffer->usPersistence += 1;
423423
break;
424424
}
425425

@@ -435,7 +435,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
435435
}
436436

437437
pxMatchingBuffer->usNumHandles = 1;
438-
pxMatchingBuffer->usPersistance += 1;
438+
pxMatchingBuffer->usPersistence += 1;
439439
break;
440440
}
441441

@@ -459,7 +459,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
459459

460460
if( ( pxRLUBuffer == NULL ) ||
461461
( pxBuffer->ulLRU > pxRLUBuffer->ulLRU ) ||
462-
( ( pxBuffer->ulLRU == pxRLUBuffer->ulLRU ) && ( pxBuffer->usPersistance > pxRLUBuffer->usPersistance ) ) )
462+
( ( pxBuffer->ulLRU == pxRLUBuffer->ulLRU ) && ( pxBuffer->usPersistence > pxRLUBuffer->usPersistence ) ) )
463463
{
464464
pxRLUBuffer = pxBuffer;
465465
}
@@ -497,7 +497,7 @@ FF_Buffer_t * FF_GetBuffer( FF_IOManager_t * pxIOManager,
497497
}
498498

499499
pxRLUBuffer->ucMode = ( ucMode & FF_MODE_RD_WR );
500-
pxRLUBuffer->usPersistance = 1;
500+
pxRLUBuffer->usPersistence = 1;
501501
pxRLUBuffer->ulLRU = 0;
502502
pxRLUBuffer->usNumHandles = 1;
503503
pxRLUBuffer->ulSector = ulSector;

include/ff_ioman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
bModified : 1, /* If the sector was modified since read. */
214214
bValid : 1; /* Initially FALSE. */
215215
uint16_t usNumHandles; /* Number of objects using this buffer. */
216-
uint16_t usPersistance; /* For the persistance algorithm. */
216+
uint16_t usPersistence; /* For the persistence algorithm. */
217217
} FF_Buffer_t;
218218

219219
typedef struct

0 commit comments

Comments
 (0)