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/gen | |
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/gen')
-rw-r--r-- | lib/libc/gen/authenticate.c | 8 | ||||
-rw-r--r-- | lib/libc/gen/nlist.c | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/gen/authenticate.c b/lib/libc/gen/authenticate.c index 238400c1804..a0da2831bcd 100644 --- a/lib/libc/gen/authenticate.c +++ b/lib/libc/gen/authenticate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authenticate.c,v 1.4 2001/07/02 19:22:34 millert Exp $ */ +/* $OpenBSD: authenticate.c,v 1.5 2001/07/09 06:57:42 deraadt Exp $ */ /*- * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. @@ -103,9 +103,6 @@ auth_mkvalue(char *value) void auth_checknologin(login_cap_t *lc) { - struct stat sb; - char *nologin; - if (_auth_checknologin(lc, 1)) exit(1); } @@ -179,7 +176,7 @@ auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type) if (as != NULL) pwd = auth_getpwd(as); - if (pwd == NULL) + if (pwd == NULL) { if (name != NULL) pwd = getpwnam(name); else { @@ -190,6 +187,7 @@ auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type) } name = pwd->pw_name; } + } if (name == NULL) name = pwd->pw_name; diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index bf3e803267d..bad454b25c6 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.39 2001/05/11 12:51:23 art Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.40 2001/07/09 06:57:43 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -429,7 +429,6 @@ __elf_fdnlist(fd, list) continue; for (p = list; !ISLAST(p); p++) { char *sym; - int again = 0; /* * First we check for the symbol as it was |