diff options
Diffstat (limited to 'sbin/restore/restore.c')
-rw-r--r-- | sbin/restore/restore.c | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/sbin/restore/restore.c b/sbin/restore/restore.c index 61cd432..614fa01 100644 --- a/sbin/restore/restore.c +++ b/sbin/restore/restore.c @@ -49,17 +49,14 @@ static const char rcsid[] = #include "restore.h" #include "extern.h" -static char *keyval __P((int)); +static char *keyval(int); /* * This implements the 't' option. * List entries on the tape. */ long -listfile(name, ino, type) - char *name; - ino_t ino; - int type; +listfile(char *name, ino_t ino, int type) { long descend = hflag ? GOOD : FAIL; @@ -75,10 +72,7 @@ listfile(name, ino, type) * Request that new entries be extracted. */ long -addfile(name, ino, type) - char *name; - ino_t ino; - int type; +addfile(char *name, ino_t ino, int type) { struct entry *ep; long descend = hflag ? GOOD : FAIL; @@ -119,10 +113,7 @@ addfile(name, ino, type) */ /* ARGSUSED */ long -deletefile(name, ino, type) - char *name; - ino_t ino; - int type; +deletefile(char *name, ino_t ino, int type) { long descend = hflag ? GOOD : FAIL; struct entry *ep; @@ -160,7 +151,7 @@ static struct entry *removelist; * Remove directories from the lookup chains. */ void -removeoldleaves() +removeoldleaves(void) { struct entry *ep, *nextep; ino_t i, mydirino; @@ -213,10 +204,7 @@ removeoldleaves() * Renames are done at the same time. */ long -nodeupdates(name, ino, type) - char *name; - ino_t ino; - int type; +nodeupdates(char *name, ino_t ino, int type) { struct entry *ep, *np, *ip; long descend = GOOD; @@ -502,8 +490,7 @@ nodeupdates(name, ino, type) * Calculate the active flags in a key. */ static char * -keyval(key) - int key; +keyval(int key) { static char keybuf[32]; @@ -524,7 +511,7 @@ keyval(key) * Find unreferenced link names. */ void -findunreflinks() +findunreflinks(void) { struct entry *ep, *np; ino_t i; @@ -572,7 +559,7 @@ findunreflinks() * time O(N). */ void -removeoldnodes() +removeoldnodes(void) { struct entry *ep, **prev; long change; @@ -601,8 +588,7 @@ removeoldnodes() * Extract new leaves. */ void -createleaves(symtabfile) - char *symtabfile; +createleaves(char *symtabfile) { struct entry *ep; ino_t first; @@ -681,7 +667,7 @@ createleaves(symtabfile) * Efficiently extract a subset of the files on a tape. */ void -createfiles() +createfiles(void) { ino_t first, next, last; struct entry *ep; @@ -777,7 +763,7 @@ createfiles() * Add links. */ void -createlinks() +createlinks(void) { struct entry *np, *ep; ino_t i; @@ -817,7 +803,7 @@ createlinks() * that no temporary names remain. */ void -checkrestore() +checkrestore(void) { struct entry *ep; ino_t i; @@ -839,10 +825,7 @@ checkrestore() * A paranoid check that things are as they should be. */ long -verifyfile(name, ino, type) - char *name; - ino_t ino; - int type; +verifyfile(char *name, ino_t ino, int type) { struct entry *np, *ep; long descend = GOOD; |