summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-28 21:52:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-28 21:52:41 +0000
commit919255a79fb3da4ff12920d097feda00a6821e08 (patch)
tree54b0056d31ab590b784a5bc81b343391e2582910 /libexec
parentcef4e73dbe154d1efe0697e35c8375d81cca57d6 (diff)
pass lint
Diffstat (limited to 'libexec')
-rw-r--r--libexec/login_chpass/login_chpass.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libexec/login_chpass/login_chpass.c b/libexec/login_chpass/login_chpass.c
index 6b22cbf582f..e084f686c61 100644
--- a/libexec/login_chpass/login_chpass.c
+++ b/libexec/login_chpass/login_chpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_chpass.c,v 1.12 2004/03/10 21:30:27 millert Exp $ */
+/* $OpenBSD: login_chpass.c,v 1.13 2004/09/28 21:52:40 deraadt Exp $ */
/*-
* Copyright (c) 1995,1996 Berkeley Software Design, Inc. All rights reserved.
@@ -66,9 +66,9 @@
#define BACK_CHANNEL 3
+#ifdef YP
struct iovec iov[2] = { { BI_SILENT, sizeof(BI_SILENT) - 1 }, { "\n", 1 } };
-#ifdef YP
int _yp_check(char **);
char *ypgetnewpasswd(struct passwd *, char **);
struct passwd *ypgetpwnam(char *);
@@ -82,7 +82,9 @@ void yp_chpass(char *);
int
main(int argc, char *argv[])
{
+#ifdef YP
char *username;
+#endif
struct rlimit rl;
int c;
@@ -113,7 +115,9 @@ main(int argc, char *argv[])
case 2:
/* class is not used */
case 1:
+#ifdef YP
username = argv[optind];
+#endif
break;
default:
syslog(LOG_ERR, "usage error");
@@ -242,6 +246,7 @@ yp_chpass(char *username)
exit(0);
}
+/* ARGSUSED */
void
kbintr(int signo)
{