summaryrefslogtreecommitdiffstats
path: root/games/number/number.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-29 08:43:32 +0000
committered <ed@FreeBSD.org>2009-12-29 08:43:32 +0000
commitef9c2d0d56d5a997bce04483ddccef2c7c24350c (patch)
treed1d26ec29bee58e29c141aa526cc427486ca3d3f /games/number/number.c
parentb90af5ae21ef3ee58eecf742d5f0bda62cff1b7f (diff)
downloadFreeBSD-src-ef9c2d0d56d5a997bce04483ddccef2c7c24350c.zip
FreeBSD-src-ef9c2d0d56d5a997bce04483ddccef2c7c24350c.tar.gz
Use ANSI C function declarations.
Diffstat (limited to 'games/number/number.c')
-rw-r--r--games/number/number.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/games/number/number.c b/games/number/number.c
index d195a4f..d30639e 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);
OpenPOWER on IntegriCloud