summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfscanf.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-09-15 09:30:42 +0000
committertholo <tholo@openbsd.org>1996-09-15 09:30:42 +0000
commitc8f91e0d750eb1dd5aa79a93a20a522c47067c28 (patch)
tree151e2a572b80f59c243874a0738c218470cf1bc0 /lib/libc/stdio/vfscanf.c
parentprint debugging flags in usage(); idea from freebsd (diff)
downloadwireguard-openbsd-c8f91e0d750eb1dd5aa79a93a20a522c47067c28.tar.xz
wireguard-openbsd-c8f91e0d750eb1dd5aa79a93a20a522c47067c28.zip
Remove dead code
Remove unused variables Silence some warnings lint(1) is your friend
Diffstat (limited to 'lib/libc/stdio/vfscanf.c')
-rw-r--r--lib/libc/stdio/vfscanf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index de8ad51984b..9531179e137 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: vfscanf.c,v 1.2 1996/08/19 08:33:12 tholo Exp $";
+static char rcsid[] = "$OpenBSD: vfscanf.c,v 1.3 1996/09/15 09:31:46 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -354,7 +354,7 @@ literal:
case CT_CCL:
/* scan a (nonempty) character class (sets NOSKIP) */
if (width == 0)
- width = ~0; /* `infinity' */
+ width = (size_t)~0; /* `infinity' */
/* take only those things in the class */
if (flags & SUPPRESS) {
n = 0;
@@ -395,7 +395,7 @@ literal:
case CT_STRING:
/* like CCL, but zero-length string OK, & no NOSKIP */
if (width == 0)
- width = ~0;
+ width = (size_t)~0;
if (flags & SUPPRESS) {
n = 0;
while (!isspace(*fp->_p)) {