diff options
| author | lukem <lukem@NetBSD.org> | 1997-10-12 01:04:43 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1997-10-12 01:04:43 +0000 |
| commit | e2d4f36cd909cf60f33ecfef8b6fb02293e22c59 (patch) | |
| tree | d1c1c05ec3c6aaecec6011a5733e70ea269fc1c4 /random/random.c | |
| parent | 9d96f89bba59d8190721c35fe575b172409c8b37 (diff) | |
| download | bsdgames-darwin-e2d4f36cd909cf60f33ecfef8b6fb02293e22c59.tar.gz bsdgames-darwin-e2d4f36cd909cf60f33ecfef8b6fb02293e22c59.zip | |
WARNSify
Diffstat (limited to 'random/random.c')
| -rw-r--r-- | random/random.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/random/random.c b/random/random.c index f48ecbbb..f4c4f1d4 100644 --- a/random/random.c +++ b/random/random.c @@ -1,4 +1,4 @@ -/* $NetBSD: random.c,v 1.4 1997/01/07 12:30:26 tls Exp $ */ +/* $NetBSD: random.c,v 1.5 1997/10/12 01:14:22 lukem Exp $ */ /* * Copyright (c) 1994 @@ -36,17 +36,17 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1994\n\ - The Regents of the University of California. All rights reserved.\n"; +__COPYRIGHT("@(#) Copyright (c) 1994\n\ + The Regents of the University of California. All rights reserved.\n"); #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)random.c 8.6 (Berkeley) 6/1/94"; #else -static char rcsid[] = "$NetBSD: random.c,v 1.4 1997/01/07 12:30:26 tls Exp $"; +__RCSID("$NetBSD: random.c,v 1.5 1997/10/12 01:14:22 lukem Exp $"); #endif #endif /* not lint */ @@ -61,6 +61,7 @@ static char rcsid[] = "$NetBSD: random.c,v 1.4 1997/01/07 12:30:26 tls Exp $"; #include <unistd.h> #include <limits.h> +int main __P((int, char **)); void usage __P((void)); int @@ -68,14 +69,14 @@ main(argc, argv) int argc; char *argv[]; { - extern int optind; struct timeval tp; double denom; int ch, random_exit, selected, unbuffer_output; char *ep; + denom = 0; random_exit = unbuffer_output = 0; - while ((ch = getopt(argc, argv, "er")) != EOF) + while ((ch = getopt(argc, argv, "er")) != -1) switch (ch) { case 'e': random_exit = 1; |
