From f19f38650861a411df2ba6df38002103393e9f9b Mon Sep 17 00:00:00 2001 From: rpaulo Date: Wed, 10 Aug 2005 14:02:26 +0000 Subject: Pass lint(1). --- random/random.c | 8 +++++--- 1 file 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 -- cgit v1.2.3-56-ge451