diff options
author | 2001-07-09 06:57:42 +0000 | |
---|---|---|
committer | 2001-07-09 06:57:42 +0000 | |
commit | 20675415ae25d5cd6585b743a7a3b5fc8476438c (patch) | |
tree | b5c8b13f4ad70d8da1e9b7e09c544028ca4e34de /lib/libc/stdio/ungetc.c | |
parent | add i2o devices (diff) | |
download | wireguard-openbsd-20675415ae25d5cd6585b743a7a3b5fc8476438c.tar.xz wireguard-openbsd-20675415ae25d5cd6585b743a7a3b5fc8476438c.zip |
a first pass at -Wall
Diffstat (limited to 'lib/libc/stdio/ungetc.c')
-rw-r--r-- | lib/libc/stdio/ungetc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index b373ea154b2..fa60aafac09 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ungetc.c,v 1.2 1996/08/19 08:33:11 tholo Exp $"; +static char rcsid[] = "$OpenBSD: ungetc.c,v 1.3 2001/07/09 06:57:45 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -43,15 +43,16 @@ static char rcsid[] = "$OpenBSD: ungetc.c,v 1.2 1996/08/19 08:33:11 tholo Exp $" #include <string.h> #include "local.h" +static int __submore __P((FILE *)); /* * Expand the ungetc buffer `in place'. That is, adjust fp->_p when * the buffer moves, so that it points the same distance from the end, * and move the bytes in the buffer around as necessary so that they * are all at the end (stack-style). */ -static +static int __submore(fp) - register FILE *fp; + FILE *fp; { register int i; register unsigned char *p; @@ -82,6 +83,7 @@ __submore(fp) return (0); } +int ungetc(c, fp) int c; register FILE *fp; |