Use ANSI C function declarations.

This commit is contained in:
ed 2009-12-29 08:43:32 +00:00
parent b90af5ae21
commit ef9c2d0d56

View File

@ -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);