diff options
Diffstat (limited to 'nuttx/lib/stdio/lib_fsetpos.c')
-rw-r--r-- | nuttx/lib/stdio/lib_fsetpos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/stdio/lib_fsetpos.c b/nuttx/lib/stdio/lib_fsetpos.c index 637c627b5..ad3e67230 100644 --- a/nuttx/lib/stdio/lib_fsetpos.c +++ b/nuttx/lib/stdio/lib_fsetpos.c @@ -107,7 +107,7 @@ int fsetpos(FAR FILE *stream, FAR fpos_t *pos) #if CONFIG_DEBUG if (!stream || !pos) { - errno = EINVAL; + set_errno(EINVAL); return ERROR; } #endif |