From aaa825bac1ed4e2de63991536e140ca68ab6e079 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 24 Jun 2012 15:26:02 +0000 Subject: fix old style definitions; XXX: gcc should have picked them up but it did not. --- lib/libc/stdlib/rand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdlib') 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)); -- cgit