From b462731cbc1198051cd39ad2f95b1027e441067d Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 7 Jun 2009 18:30:39 +0000 Subject: ANSIfy function declarations. All object file diffs inspected. --- hack/rnd.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'hack/rnd.c') diff --git a/hack/rnd.c b/hack/rnd.c index 10f93126..00650e3b 100644 --- a/hack/rnd.c +++ b/hack/rnd.c @@ -1,4 +1,4 @@ -/* $NetBSD: rnd.c,v 1.5 2003/04/02 18:36:42 jsm Exp $ */ +/* $NetBSD: rnd.c,v 1.6 2009/06/07 18:30:39 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: rnd.c,v 1.5 2003/04/02 18:36:42 jsm Exp $"); +__RCSID("$NetBSD: rnd.c,v 1.6 2009/06/07 18:30:39 dholland Exp $"); #endif /* not lint */ #include @@ -73,29 +73,25 @@ __RCSID("$NetBSD: rnd.c,v 1.5 2003/04/02 18:36:42 jsm Exp $"); #define RND(x) ((random()>>3) % x) int -rn1(x, y) - int x, y; +rn1(int x, int y) { return (RND(x) + y); } int -rn2(x) - int x; +rn2(int x) { return (RND(x)); } int -rnd(x) - int x; +rnd(int x) { return (RND(x) + 1); } int -d(n, x) - int n, x; +d(int n, int x) { int tmp = n; -- cgit v1.2.3-56-ge451