summaryrefslogtreecommitdiff
path: root/libexec/login_lchpass
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 18:45:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 18:45:08 +0000
commit39885284ac132a9ed6cf33cefd89b19ac1868856 (patch)
tree700fa2075a44fe78fdfadd9c72a574c79a18421e /libexec/login_lchpass
parentc68237ca2897c0d2692456aee7ae6aad1612a6c5 (diff)
ansi; ok millert pvalchev
Diffstat (limited to 'libexec/login_lchpass')
-rw-r--r--libexec/login_lchpass/login_lchpass.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libexec/login_lchpass/login_lchpass.c b/libexec/login_lchpass/login_lchpass.c
index 6c1c6882ea2..5271385fa77 100644
--- a/libexec/login_lchpass/login_lchpass.c
+++ b/libexec/login_lchpass/login_lchpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_lchpass.c,v 1.9 2002/06/28 01:14:37 deraadt Exp $ */
+/* $OpenBSD: login_lchpass.c,v 1.10 2002/09/06 18:45:06 deraadt Exp $ */
/*-
* Copyright (c) 1995,1996 Berkeley Software Design, Inc. All rights reserved.
@@ -58,18 +58,14 @@
int local_passwd(char *, int);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
struct iovec iov[2];
struct passwd *pwd;
char localhost[MAXHOSTNAMELEN];
- char *username = NULL;
- char *salt;
- char *p;
- int c;
+ char *username = NULL, *salt, *p;
struct rlimit rl;
+ int c;
iov[0].iov_base = BI_SILENT;
iov[0].iov_len = sizeof(BI_SILENT) - 1;