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/authenticate.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/gen/authenticate.c')
-rw-r--r-- | lib/libc/gen/authenticate.c | 8 |
1 files changed, 3 insertions, 5 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; |