diff options
author | imp <imp@FreeBSD.org> | 2002-03-20 22:49:40 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-03-20 22:49:40 +0000 |
commit | 69763106f0fd2b6bc5d1d93ba49d88ca38ea3c56 (patch) | |
tree | 07ff12515683ef4e24a284e242c874bd8b92d427 /sbin/restore/symtab.c | |
parent | 2e58ec02712d7b8dffd130dacaad2ad7c24c592b (diff) | |
download | FreeBSD-src-69763106f0fd2b6bc5d1d93ba49d88ca38ea3c56.zip FreeBSD-src-69763106f0fd2b6bc5d1d93ba49d88ca38ea3c56.tar.gz |
o remove __P
o Use ANSI function definitions
o unifdef -D__STDC__
Diffstat (limited to 'sbin/restore/symtab.c')
-rw-r--r-- | sbin/restore/symtab.c | 53 |
1 files changed, 17 insertions, 36 deletions
diff --git a/sbin/restore/symtab.c b/sbin/restore/symtab.c index ee7b1f7..3dd55f8 100644 --- a/sbin/restore/symtab.c +++ b/sbin/restore/symtab.c @@ -74,16 +74,15 @@ static const char rcsid[] = static struct entry **entry; static long entrytblsize; -static void addino __P((ino_t, struct entry *)); -static struct entry *lookupparent __P((char *)); -static void removeentry __P((struct entry *)); +static void addino(ino_t, struct entry *); +static struct entry *lookupparent(char *); +static void removeentry(struct entry *); /* * Look up an entry by inode number */ struct entry * -lookupino(inum) - ino_t inum; +lookupino(ino_t inum) { struct entry *ep; @@ -99,9 +98,7 @@ lookupino(inum) * Add an entry into the entry table */ static void -addino(inum, np) - ino_t inum; - struct entry *np; +addino(ino_t inum, struct entry *np) { struct entry **epp; @@ -121,8 +118,7 @@ addino(inum, np) * Delete an entry from the entry table */ void -deleteino(inum) - ino_t inum; +deleteino(ino_t inum) { struct entry *next; struct entry **prev; @@ -145,8 +141,7 @@ deleteino(inum) * Look up an entry by name */ struct entry * -lookupname(name) - char *name; +lookupname(char *name) { struct entry *ep; char *np, *cp; @@ -175,8 +170,7 @@ lookupname(name) * Look up the parent of a pathname */ static struct entry * -lookupparent(name) - char *name; +lookupparent(char *name) { struct entry *ep; char *tailindex; @@ -198,8 +192,7 @@ lookupparent(name) * Determine the current pathname of a node or leaf */ char * -myname(ep) - struct entry *ep; +myname(struct entry *ep) { char *cp; static char namebuf[MAXPATHLEN]; @@ -226,10 +219,7 @@ static struct entry *freelist = NULL; * add an entry to the symbol table */ struct entry * -addentry(name, inum, type) - char *name; - ino_t inum; - int type; +addentry(char *name, ino_t inum, int type) { struct entry *np, *ep; @@ -277,8 +267,7 @@ addentry(name, inum, type) * delete an entry from the symbol table */ void -freeentry(ep) - struct entry *ep; +freeentry(struct entry *ep) { struct entry *np; ino_t inum; @@ -321,9 +310,7 @@ freeentry(ep) * Relocate an entry in the tree structure */ void -moveentry(ep, newname) - struct entry *ep; - char *newname; +moveentry(struct entry *ep, char *newname) { struct entry *np; char *cp; @@ -351,8 +338,7 @@ moveentry(ep, newname) * Remove an entry in the tree structure */ static void -removeentry(ep) - struct entry *ep; +removeentry(struct entry *ep) { struct entry *np; @@ -397,8 +383,7 @@ static struct strhdr strtblhdr[allocsize(NAME_MAX) / STRTBLINCR]; * has an appropriate sized entry, and if not allocates a new one. */ char * -savename(name) - char *name; +savename(char *name) { struct strhdr *np; long len; @@ -425,8 +410,7 @@ savename(name) * appropriate free list. */ void -freename(name) - char *name; +freename(char *name) { struct strhdr *tp, *np; @@ -453,9 +437,7 @@ struct symtableheader { * dump a snapshot of the symbol table */ void -dumpsymtable(filename, checkpt) - char *filename; - long checkpt; +dumpsymtable(char *filename, long checkpt) { struct entry *ep, *tep; ino_t i; @@ -541,8 +523,7 @@ dumpsymtable(filename, checkpt) * Initialize a symbol table from a file */ void -initsymtable(filename) - char *filename; +initsymtable(char *filename) { char *base; long tblsize; |