1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
* stdio-common/vfscanf.c: Don't return -1 in case of an invalid
	format, jsut stop.
This commit is contained in:
Ulrich Drepper
1998-11-13 19:38:37 +00:00
parent 77d10f94bf
commit 27658f2067
3 changed files with 16 additions and 15 deletions

View File

@ -85,11 +85,6 @@
__libc_cleanup_end (0); \
return EOF; \
} while (0)
# define fmt_error() do { \
_IO_funlockfile (s); \
__libc_cleanup_end (0); \
return EOF; \
} while (0)
# define ARGCHECK(s, format) \
do \
{ \
@ -134,10 +129,6 @@
__set_errno (ENOMEM); \
return EOF; \
} while (0)
# define fmt_error() do { \
funlockfile (s); \
return EOF; \
} while (0)
# define ARGCHECK(s, format) \
do \
{ \
@ -1259,7 +1250,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
default:
/* If this is an unknown format character punt. */
fmt_error ();
conv_error ();
}
}