summaryrefslogtreecommitdiff
path: root/nuttx/lib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-01 23:59:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-01 23:59:10 +0000
commitafb8ba0d57596a1ff9ec520c4aaef6c2217b5f24 (patch)
tree55aff5170ebf4f3628ac6a3158eef3c91e0381a2 /nuttx/lib
parent671926c39c76b0bfb6442431bbdc6c85c21d7087 (diff)
downloadpx4-nuttx-afb8ba0d57596a1ff9ec520c4aaef6c2217b5f24.tar.gz
px4-nuttx-afb8ba0d57596a1ff9ec520c4aaef6c2217b5f24.tar.bz2
px4-nuttx-afb8ba0d57596a1ff9ec520c4aaef6c2217b5f24.zip
Fix compile error
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@863 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r--nuttx/lib/lib_fgetpos.c4
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;