Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/ff_stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@
/* Cast from a numeric value to a pointer. */
void * pvValue = ( void * ) ( xErrno );

vTaskSetThreadLocalStoragePointer( NULL, ffconfigCWD_THREAD_LOCAL_INDEX, pvValue );
vTaskSetThreadLocalStoragePointer( NULL, stdioERRNO_THREAD_LOCAL_OFFSET, pvValue );
}

static portINLINE int stdioGET_ERRNO( void )
{
void * pvResult;

pvResult = pvTaskGetThreadLocalStoragePointer( ( TaskHandle_t ) NULL, ffconfigCWD_THREAD_LOCAL_INDEX );
pvResult = pvTaskGetThreadLocalStoragePointer( ( TaskHandle_t ) NULL, stdioERRNO_THREAD_LOCAL_OFFSET );
/* Cast from a pointer to a number of the same size. */
intptr_t xErrno = ( intptr_t ) pvResult;
/* Cast it to an integer. */
Expand Down
Loading