diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-08-04 01:08:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-08-04 01:08:55 +0000 |
commit | 7366642a2abca72e0dce8cad4e7742b9bfa034d6 (patch) | |
tree | 0e24b64ecc972e5ee96638273cccb63d1177aa1f /usr.bin | |
parent | 2bc2dc72f87555898f835acd7b7d1d907dea7bc2 (diff) |
ansi
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/lock/lock.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c index ab321a2d24c..92a7c66b306 100644 --- a/usr.bin/lock/lock.c +++ b/usr.bin/lock/lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.c,v 1.17 2002/06/23 03:07:21 deraadt Exp $ */ +/* $OpenBSD: lock.c,v 1.18 2002/08/04 01:08:54 deraadt Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: lock.c,v 1.17 2002/06/23 03:07:21 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: lock.c,v 1.18 2002/08/04 01:08:54 deraadt Exp $"; #endif /* not lint */ /* @@ -90,17 +90,15 @@ extern char *__progname; /*ARGSUSED*/ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { - struct passwd *pw; + char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ], date[256]; + char *p, *style, *nstyle, *ttynam; struct itimerval ntimer, otimer; + int ch, sectimeout, usemine; + struct passwd *pw; struct tm *timp; time_t curtime; - int ch, sectimeout, usemine; - char *p, *style, *nstyle, *ttynam; - char hostname[MAXHOSTNAMELEN], s[BUFSIZ], s1[BUFSIZ], date[256]; login_cap_t *lc; sectimeout = TIMEOUT; @@ -220,8 +218,7 @@ main(argc, argv) } void -hi(dummy) - int dummy; +hi(int dummy) { char buf[1024], buf2[1024]; time_t now; @@ -239,8 +236,7 @@ hi(dummy) } void -bye(dummy) - int dummy; +bye(int dummy) { if (!no_timeout) |