Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2009 08:43:32 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201176 - head/games/number
Message-ID:  <200912290843.nBT8hW0B016776@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Tue Dec 29 08:43:32 2009
New Revision: 201176
URL: http://svn.freebsd.org/changeset/base/201176

Log:
  Use ANSI C function declarations.

Modified:
  head/games/number/number.c

Modified: head/games/number/number.c
==============================================================================
--- head/games/number/number.c	Tue Dec 29 08:42:58 2009	(r201175)
+++ head/games/number/number.c	Tue Dec 29 08:43:32 2009	(r201176)
@@ -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", 
 }
 
 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912290843.nBT8hW0B016776>