Fix compile error

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@863 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-09-01 23:59:10 +00:00
parent 4f58db9c18
commit 0179e3a363

View File

@ -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;