summaryrefslogtreecommitdiff
path: root/nuttx/lib/stdio/lib_ftell.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/stdio/lib_ftell.c')
-rw-r--r--nuttx/lib/stdio/lib_ftell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/stdio/lib_ftell.c b/nuttx/lib/stdio/lib_ftell.c
index b0b0a78e5..cd0e48368 100644
--- a/nuttx/lib/stdio/lib_ftell.c
+++ b/nuttx/lib/stdio/lib_ftell.c
@@ -107,7 +107,7 @@ long ftell(FAR FILE *stream)
if (!stream)
{
- errno = EBADF;
+ set_errno(EBADF);
return ERROR;
}