summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2012-06-24 15:26:02 +0000
committerchristos <christos@NetBSD.org>2012-06-24 15:26:02 +0000
commitaaa825bac1ed4e2de63991536e140ca68ab6e079 (patch)
tree50917c99e31764f6aad275f898c1e43b7643e5c6 /lib/libc/stdlib
parent981e50fddf87e746c9ada4cc5ccb42506e081b0e (diff)
fix old style definitions; XXX: gcc should have picked them up but it did not.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/rand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c
index b2e4544b7b1..4343d6ff6d9 100644
--- a/lib/libc/stdlib/rand.c
+++ b/lib/libc/stdlib/rand.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $ */
+/* $NetBSD: rand.c,v 1.11 2012/06/24 15:26:03 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)rand.c 8.1 (Berkeley) 6/14/93";
#else
-__RCSID("$NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $");
+__RCSID("$NetBSD: rand.c,v 1.11 2012/06/24 15:26:03 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -44,7 +44,7 @@ __RCSID("$NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $");
static u_long next = 1;
int
-rand()
+rand(void)
{
/* LINTED integer overflow */
return (int)((next = next * 1103515245 + 12345) % ((u_long)RAND_MAX + 1));