diff options
author | rpaulo <rpaulo@NetBSD.org> | 2005-08-10 14:02:26 +0000 |
---|---|---|
committer | rpaulo <rpaulo@NetBSD.org> | 2005-08-10 14:02:26 +0000 |
commit | f19f38650861a411df2ba6df38002103393e9f9b (patch) | |
tree | e13188f4ec6823a03175cedd9a6429c84d660894 /random | |
parent | 21063bf128e3391402d4b9d63a7f8a532e3252c9 (diff) | |
download | bsdgames-darwin-f19f38650861a411df2ba6df38002103393e9f9b.tar.gz bsdgames-darwin-f19f38650861a411df2ba6df38002103393e9f9b.tar.zst bsdgames-darwin-f19f38650861a411df2ba6df38002103393e9f9b.zip |
Pass lint(1).
Diffstat (limited to 'random')
-rw-r--r-- | random/random.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/random/random.c b/random/random.c index 97b6ea51..6b024f74 100644 --- a/random/random.c +++ b/random/random.c @@ -1,4 +1,4 @@ -/* $NetBSD: random.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ +/* $NetBSD: random.c,v 1.10 2005/08/10 14:02:26 rpaulo Exp $ */ /* * Copyright (c) 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\ #if 0 static char sccsid[] = "@(#)random.c 8.6 (Berkeley) 6/1/94"; #else -__RCSID("$NetBSD: random.c,v 1.9 2004/01/27 20:30:30 jsm Exp $"); +__RCSID("$NetBSD: random.c,v 1.10 2005/08/10 14:02:26 rpaulo Exp $"); #endif #endif /* not lint */ @@ -109,7 +109,7 @@ main(argc, argv) } (void)gettimeofday(&tp, NULL); - srandom((u_int)(tp.tv_usec + tp.tv_sec + getpid())); + srandom((unsigned long)tp.tv_usec + tp.tv_sec + getpid()); /* Compute a random exit status between 0 and denom - 1. */ if (random_exit) @@ -144,6 +144,8 @@ main(argc, argv) if (ferror(stdin)) err(2, "stdin"); exit (0); + + return 0; } void |