From facbf89fc7d7cb6a174c1852a824d72e285ef842 Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 23 Jun 2009 23:20:09 +0000 Subject: K&R -> ANSI --- lib/libcompat/4.3/cfree.c | 3 +-- lib/libcompat/4.3/regex.c | 9 +++------ lib/libcompat/4.4/cuserid.c | 3 +-- 3 files changed, 5 insertions(+), 10 deletions(-) (limited to 'lib/libcompat') diff --git a/lib/libcompat/4.3/cfree.c b/lib/libcompat/4.3/cfree.c index b100c2a..ca51d2e 100644 --- a/lib/libcompat/4.3/cfree.c +++ b/lib/libcompat/4.3/cfree.c @@ -37,8 +37,7 @@ static char sccsid[] = "@(#)cfree.c 8.1 (Berkeley) 6/4/93"; #include void -cfree(p) - void *p; +cfree(void *p) { free(p); } diff --git a/lib/libcompat/4.3/regex.c b/lib/libcompat/4.3/regex.c index 9c4faf6..470cab5 100644 --- a/lib/libcompat/4.3/regex.c +++ b/lib/libcompat/4.3/regex.c @@ -56,8 +56,7 @@ static int re_goterr; static char *re_errstr; char * -re_comp(s) - char *s; +re_comp(char *s) { if (s == NULL || *s == '\0') { if (re_regexp == NULL) @@ -74,8 +73,7 @@ re_comp(s) } int -re_exec(s) - char *s; +re_exec(char *s) { int rc; @@ -85,8 +83,7 @@ re_exec(s) } void -regerror(s) - const char *s; +regerror(const char *s) { re_goterr = 1; if (re_errstr) diff --git a/lib/libcompat/4.4/cuserid.c b/lib/libcompat/4.4/cuserid.c index 40de6b2..eea1c6f 100644 --- a/lib/libcompat/4.4/cuserid.c +++ b/lib/libcompat/4.4/cuserid.c @@ -39,8 +39,7 @@ __FBSDID("$FreeBSD$"); #include char * -cuserid(s) - char *s; +cuserid(char *s) { struct passwd *pwd; -- cgit v1.1