From: Ulrich Drepper Date: Mon, 2 Mar 1998 18:34:10 +0000 (+0000) Subject: (inchar): Fix typos. X-Git-Tag: cvs/before-sparc-2_0_x-branch~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ce75196843d72bd75b1eae14104279d5d22599;p=thirdparty%2Fglibc.git (inchar): Fix typos. --- diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index 106c729b9c8..c02b4f4c4ae 100644 --- a/stdio-common/vfscanf.c +++ b/stdio-common/vfscanf.c @@ -56,8 +56,8 @@ # define va_list _IO_va_list # define ungetc(c, s) ((void) ((int) c != EOF && --read_in), \ _IO_ungetc (c, s)) -# define inchar() (c == EOF ? EOF - : ((c = _IO_getc_unlocked (s)), \ +# define inchar() (c == EOF ? EOF \ + : ((c = _IO_getc_unlocked (s)), \ (void) (c != EOF && ++read_in), c)) # define encode_error() do { \ if (errp != NULL) *errp |= 4; \ @@ -102,7 +102,7 @@ # define UNLOCK_STREAM __libc_cleanup_region_end (1) #else # define ungetc(c, s) ((void) (c != EOF && --read_in), ungetc (c, s)) -# define inchar() (c == EOF ? EOF +# define inchar() (c == EOF ? EOF \ : ((c = getc (s)), (void) (c != EOF && ++read_in), c)) # define encode_error() do { \ funlockfile (s); \