summaryrefslogtreecommitdiff
path: root/lib/libcompat
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-06-23 23:20:09 +0000
committerXin LI <delphij@FreeBSD.org>2009-06-23 23:20:09 +0000
commitece41d22fe5d15f51dbf304847053ad1f36cdf9e (patch)
treee3f58563171dfa195923732e5792fe3b0f5751d6 /lib/libcompat
parentdb995e002701dc87fdff7c329697b21dd1d75746 (diff)
downloadsrc-test-ece41d22fe5d15f51dbf304847053ad1f36cdf9e.tar.gz
src-test-ece41d22fe5d15f51dbf304847053ad1f36cdf9e.zip
K&R -> ANSI
Notes
Notes: svn path=/head/; revision=194793
Diffstat (limited to 'lib/libcompat')
-rw-r--r--lib/libcompat/4.3/cfree.c3
-rw-r--r--lib/libcompat/4.3/regex.c9
-rw-r--r--lib/libcompat/4.4/cuserid.c3
3 files changed, 5 insertions, 10 deletions
diff --git a/lib/libcompat/4.3/cfree.c b/lib/libcompat/4.3/cfree.c
index b100c2a837f29..ca51d2e95942a 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 <stdlib.h>
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 9c4faf6580c45..470cab52e7799 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 40de6b2f0f09b..eea1c6fd1c89c 100644
--- a/lib/libcompat/4.4/cuserid.c
+++ b/lib/libcompat/4.4/cuserid.c
@@ -39,8 +39,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
char *
-cuserid(s)
- char *s;
+cuserid(char *s)
{
struct passwd *pwd;