diff options
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/lib/lib_fgetpos.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nuttx/lib/lib_fgetpos.c b/nuttx/lib/lib_fgetpos.c index 92044a54c..c8c5bce4b 100644 --- a/nuttx/lib/lib_fgetpos.c +++ b/nuttx/lib/lib_fgetpos.c @@ -45,8 +45,6 @@ #include <sys/types.h> #include <stdio.h> -#include <unistd.h> -#include <fcntl.h> #include <errno.h> #include "lib_internal.h" @@ -114,7 +112,7 @@ int fgetpos(FILE *stream, fpos_t *pos) } #endif - position = ftell(stream, (off_t)*pos, SEEK_SET); + position = ftell(stream); if (position == -1) { return ERROR; |