summaryrefslogtreecommitdiff
path: root/usr.bin/passwd/yp_passwd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-30 21:06:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-30 21:06:30 +0000
commit4aa6eec1f0ddf8475f882089b9d93b976be7f1b1 (patch)
tree5396f71d9848f4b94af9e49f6903325178dea7f3 /usr.bin/passwd/yp_passwd.c
parenta1aec9c4b02c06fc344177e3bf5cad1c6a02bb7c (diff)
minimal lint happiness, round 1
Diffstat (limited to 'usr.bin/passwd/yp_passwd.c')
-rw-r--r--usr.bin/passwd/yp_passwd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/passwd/yp_passwd.c b/usr.bin/passwd/yp_passwd.c
index cd58f8c266d..f75f0376643 100644
--- a/usr.bin/passwd/yp_passwd.c
+++ b/usr.bin/passwd/yp_passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp_passwd.c,v 1.28 2004/07/13 21:09:48 millert Exp $ */
+/* $OpenBSD: yp_passwd.c,v 1.29 2006/03/30 21:06:29 deraadt Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -30,7 +30,7 @@
*/
#ifndef lint
/*static const char sccsid[] = "from: @(#)yp_passwd.c 1.0 2/2/93";*/
-static const char rcsid[] = "$OpenBSD: yp_passwd.c,v 1.28 2004/07/13 21:09:48 millert Exp $";
+static const char rcsid[] = "$OpenBSD: yp_passwd.c,v 1.29 2006/03/30 21:06:29 deraadt Exp $";
#endif /* not lint */
#ifdef YP
@@ -314,14 +314,13 @@ ypgetpwnam(char *nam, int secure)
char *val;
reason = yp_match(domain,
- secure ? "master.passwd.byname" : "passwd.byname",
- nam, strlen(nam), &val, &vallen);
+ secure ? "master.passwd.byname" : "passwd.byname",
+ nam, strlen(nam), &val, &vallen);
switch (reason) {
case 0:
break;
default:
return (NULL);
- break;
}
val[vallen] = '\0';
if (__yplin)