aboutsummaryrefslogtreecommitdiff
path: root/sbin/restore/restore.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-03-20 22:49:40 +0000
committerWarner Losh <imp@FreeBSD.org>2002-03-20 22:49:40 +0000
commit2db673ab00bbee1379bda9dbe6f962f73c76c01a (patch)
tree07ff12515683ef4e24a284e242c874bd8b92d427 /sbin/restore/restore.c
parent97ec1da11a306ec35dd11e245e754c8bf167786e (diff)
downloadsrc-2db673ab00bbee1379bda9dbe6f962f73c76c01a.tar.gz
src-2db673ab00bbee1379bda9dbe6f962f73c76c01a.zip
Notes
Diffstat (limited to 'sbin/restore/restore.c')
-rw-r--r--sbin/restore/restore.c45
1 files changed, 14 insertions, 31 deletions
diff --git a/sbin/restore/restore.c b/sbin/restore/restore.c
index 61cd4326cfe9..614fa0166890 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;