From ef9c2d0d56d5a997bce04483ddccef2c7c24350c Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 29 Dec 2009 08:43:32 +0000 Subject: [PATCH] Use ANSI C function declarations. --- games/number/number.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/games/number/number.c b/games/number/number.c index d195a4f1e785..d30639e7e8c8 100644 --- a/games/number/number.c +++ b/games/number/number.c @@ -125,8 +125,7 @@ main(int argc, char *argv[]) } void -convert(line) - char *line; +convert(char *line) { int flen, len, rval; char *p, *fraction; @@ -194,9 +193,7 @@ badnum: errx(1, "illegal number: %s", line); } int -unit(len, p) - int len; - char *p; +unit(int len, char *p) { int off, rval; @@ -230,9 +227,7 @@ unit(len, p) } int -number(p, len) - char *p; - int len; +number(char *p, int len) { int val, rval; @@ -270,8 +265,7 @@ number(p, len) } void -pfract(len) - int len; +pfract(int len) { static char const * const pref[] = { "", "ten-", "hundred-" }; @@ -289,7 +283,7 @@ pfract(len) } void -usage() +usage(void) { (void)fprintf(stderr, "usage: number [-l] [# ...]\n"); exit(1);