diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2007-11-07 10:53:41 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2007-11-07 10:53:41 +0000 |
commit | 784bddbc5bca158d2fb57eed7c5e4ceebd49ff8b (patch) | |
tree | 368b0b244e9ff1e4d1d1e563ee72dc5168999272 /sbin/rcorder | |
parent | 96e460ec534f08eb10f4399f79381ae333de9e3c (diff) | |
download | src-784bddbc5bca158d2fb57eed7c5e4ceebd49ff8b.tar.gz src-784bddbc5bca158d2fb57eed7c5e4ceebd49ff8b.zip |
Cleanup of userland __P use
Notes
Notes:
svn path=/head/; revision=173412
Diffstat (limited to 'sbin/rcorder')
-rw-r--r-- | sbin/rcorder/ealloc.c | 3 | ||||
-rw-r--r-- | sbin/rcorder/ealloc.h | 9 | ||||
-rw-r--r-- | sbin/rcorder/hash.c | 3 | ||||
-rw-r--r-- | sbin/rcorder/hash.h | 15 | ||||
-rw-r--r-- | sbin/rcorder/rcorder.c | 42 |
5 files changed, 38 insertions, 34 deletions
diff --git a/sbin/rcorder/ealloc.c b/sbin/rcorder/ealloc.c index 9accebe36206..a7cf6bc4a713 100644 --- a/sbin/rcorder/ealloc.c +++ b/sbin/rcorder/ealloc.c @@ -1,3 +1,4 @@ +/* $FreeBSD$ */ /* $NetBSD: ealloc.c,v 1.1.1.1 1999/11/19 04:30:56 mrg Exp $ */ /* @@ -50,7 +51,7 @@ __RCSID("$NetBSD: ealloc.c,v 1.1.1.1 1999/11/19 04:30:56 mrg Exp $"); #include "ealloc.h" -static void enomem __P((void)); +static void enomem(void); /* * enomem -- diff --git a/sbin/rcorder/ealloc.h b/sbin/rcorder/ealloc.h index fb753d5fca42..093ebc3dadc8 100644 --- a/sbin/rcorder/ealloc.h +++ b/sbin/rcorder/ealloc.h @@ -1,6 +1,7 @@ +/* $FreeBSD$ */ /* $NetBSD: ealloc.h,v 1.1.1.1 1999/11/19 04:30:56 mrg Exp $ */ -void *emalloc __P((size_t len)); -char *estrdup __P((const char *str)); -void *erealloc __P((void *ptr, size_t size)); -void *ecalloc __P((size_t nmemb, size_t size)); +void *emalloc(size_t len); +char *estrdup(const char *str); +void *erealloc(void *ptr, size_t size); +void *ecalloc(size_t nmemb, size_t size); diff --git a/sbin/rcorder/hash.c b/sbin/rcorder/hash.c index 5ec335a367bd..bc882b92d6bd 100644 --- a/sbin/rcorder/hash.c +++ b/sbin/rcorder/hash.c @@ -1,3 +1,4 @@ +/* $FreeBSD$ */ /* $NetBSD: hash.c,v 1.1.1.1 1999/11/19 04:30:56 mrg Exp $ */ /* @@ -76,7 +77,7 @@ __RCSID("$NetBSD: hash.c,v 1.1.1.1 1999/11/19 04:30:56 mrg Exp $"); * defined: */ -static void RebuildTable __P((Hash_Table *)); +static void RebuildTable(Hash_Table *); /* * The following defines the ratio of # entries to # buckets diff --git a/sbin/rcorder/hash.h b/sbin/rcorder/hash.h index cf15256d1140..fd2f9783377b 100644 --- a/sbin/rcorder/hash.h +++ b/sbin/rcorder/hash.h @@ -1,3 +1,4 @@ +/* $FreeBSD$ */ /* $NetBSD: hash.h,v 1.1.1.1 1999/11/19 04:30:56 mrg Exp $ */ /* @@ -119,12 +120,12 @@ typedef struct Hash_Search { #define Hash_Size(n) (((n) + sizeof (int) - 1) / sizeof (int)) -void Hash_InitTable __P((Hash_Table *, int)); -void Hash_DeleteTable __P((Hash_Table *)); -Hash_Entry *Hash_FindEntry __P((Hash_Table *, char *)); -Hash_Entry *Hash_CreateEntry __P((Hash_Table *, char *, Boolean *)); -void Hash_DeleteEntry __P((Hash_Table *, Hash_Entry *)); -Hash_Entry *Hash_EnumFirst __P((Hash_Table *, Hash_Search *)); -Hash_Entry *Hash_EnumNext __P((Hash_Search *)); +void Hash_InitTable(Hash_Table *, int); +void Hash_DeleteTable(Hash_Table *); +Hash_Entry *Hash_FindEntry(Hash_Table *, char *); +Hash_Entry *Hash_CreateEntry(Hash_Table *, char *, Boolean *); +void Hash_DeleteEntry(Hash_Table *, Hash_Entry *); +Hash_Entry *Hash_EnumFirst(Hash_Table *, Hash_Search *); +Hash_Entry *Hash_EnumNext(Hash_Search *); #endif /* _HASH */ diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c index 5bf60cb174bc..bf8e9fbd5c0c 100644 --- a/sbin/rcorder/rcorder.c +++ b/sbin/rcorder/rcorder.c @@ -130,27 +130,27 @@ strnodelist *bl_list; strnodelist *keep_list; strnodelist *skip_list; -void do_file __P((filenode *fnode)); -void strnode_add __P((strnodelist **, char *, filenode *)); -int skip_ok __P((filenode *fnode)); -int keep_ok __P((filenode *fnode)); -void satisfy_req __P((f_reqnode *rnode, char *filename)); -void crunch_file __P((char *)); -void parse_require __P((filenode *, char *)); -void parse_provide __P((filenode *, char *)); -void parse_before __P((filenode *, char *)); -void parse_keywords __P((filenode *, char *)); -filenode *filenode_new __P((char *)); -void add_require __P((filenode *, char *)); -void add_provide __P((filenode *, char *)); -void add_before __P((filenode *, char *)); -void add_keyword __P((filenode *, char *)); -void insert_before __P((void)); -Hash_Entry *make_fake_provision __P((filenode *)); -void crunch_all_files __P((void)); -void initialize __P((void)); -void generate_ordering __P((void)); -int main __P((int, char *[])); +void do_file(filenode *fnode); +void strnode_add(strnodelist **, char *, filenode *); +int skip_ok(filenode *fnode); +int keep_ok(filenode *fnode); +void satisfy_req(f_reqnode *rnode, char *filename); +void crunch_file(char *); +void parse_require(filenode *, char *); +void parse_provide(filenode *, char *); +void parse_before(filenode *, char *); +void parse_keywords(filenode *, char *); +filenode *filenode_new(char *); +void add_require(filenode *, char *); +void add_provide(filenode *, char *); +void add_before(filenode *, char *); +void add_keyword(filenode *, char *); +void insert_before(void); +Hash_Entry *make_fake_provision(filenode *); +void crunch_all_files(void); +void initialize(void); +void generate_ordering(void); +int main(int, char *[]); int main(argc, argv) |