K&R -> ANSI

This commit is contained in:
Xin LI 2009-06-23 23:20:09 +00:00
parent db995e0027
commit ece41d22fe
3 changed files with 5 additions and 10 deletions

View File

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

View File

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

View File

@ -39,8 +39,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
char *
cuserid(s)
char *s;
cuserid(char *s)
{
struct passwd *pwd;