diff options
author | lukem <lukem@NetBSD.org> | 1997-10-12 00:53:45 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 1997-10-12 00:53:45 +0000 |
commit | 718b40e43f2fbb804acc0266499926f8e51f83ef (patch) | |
tree | ce23ec6ddb7cc228fe2f9f6af3f68bd843f6c4f9 /mille/mille.c | |
parent | 465f7ee80758219cdc70f7ed834148335f5c4d59 (diff) | |
download | bsdgames-darwin-718b40e43f2fbb804acc0266499926f8e51f83ef.tar.gz bsdgames-darwin-718b40e43f2fbb804acc0266499926f8e51f83ef.tar.zst bsdgames-darwin-718b40e43f2fbb804acc0266499926f8e51f83ef.zip |
WARNSify
Diffstat (limited to 'mille/mille.c')
-rw-r--r-- | mille/mille.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/mille/mille.c b/mille/mille.c index 6a6a0395..84536051 100644 --- a/mille/mille.c +++ b/mille/mille.c @@ -1,4 +1,4 @@ -/* $NetBSD: mille.c,v 1.5 1997/05/23 23:09:38 jtc Exp $ */ +/* $NetBSD: mille.c,v 1.6 1997/10/12 00:54:07 lukem Exp $ */ /* * Copyright (c) 1982, 1993 @@ -33,17 +33,17 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1982, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1982, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: mille.c,v 1.5 1997/05/23 23:09:38 jtc Exp $"; +__RCSID("$NetBSD: mille.c,v 1.6 1997/10/12 00:54:07 lukem Exp $"); #endif #endif /* not lint */ @@ -57,13 +57,12 @@ static char rcsid[] = "$NetBSD: mille.c,v 1.5 1997/05/23 23:09:38 jtc Exp $"; * @(#)mille.c 1.3 (Berkeley) 5/10/83 */ -void rub(); - +int main(ac, av) -register int ac; -register char *av[]; + int ac; + char *av[]; { - register bool restore; + bool restore; /* run as the user */ setuid(getuid()); @@ -146,8 +145,9 @@ register char *av[]; * quit. */ void -rub() { - +rub(dummy) + int dummy; +{ (void)signal(SIGINT, SIG_IGN); if (getyn(REALLYPROMPT)) die(0); @@ -157,8 +157,10 @@ rub() { /* * Time to go beddy-by */ +void die(code) -int code; { + int code; +{ (void)signal(SIGINT, SIG_IGN); if (outf) |