summaryrefslogtreecommitdiff
path: root/stdio-common/vfscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/vfscanf.c')
-rw-r--r--stdio-common/vfscanf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index f83fd281a1..ee2c922f6e 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -66,7 +66,7 @@ Cambridge, MA 02139, USA. */
} while (0)
# define memory_error() do { \
_IO_funlockfile (s); \
- errno = ENOMEM; \
+ __set_errno (ENOMEM); \
return EOF; \
} while (0)
# define ARGCHECK(s, format) \
@@ -97,7 +97,7 @@ Cambridge, MA 02139, USA. */
} while (0)
# define memory_error() do { \
funlockfile (s); \
- errno = ENOMEM; \
+ __set_errno (ENOMEM); \
return EOF; \
} while (0)
# define ARGCHECK(s, format) \
@@ -106,7 +106,7 @@ Cambridge, MA 02139, USA. */
/* Check file argument for consistence. */ \
if (!__validfp (s) || !s->__mode.__read || format == NULL) \
{ \
- errno = EINVAL; \
+ __set_errno (EINVAL); \
return EOF; \
} \
} while (0)