summaryrefslogtreecommitdiff
path: root/sbin/restore/restore.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-17 02:14:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-17 02:14:34 +0000
commit777e443a4907c980d426ece9a6f7cdb21fea4f1b (patch)
treec7899405ab91d9f045012553ebfb1b8f7300f21b /sbin/restore/restore.c
parent5757b9a265e6ab7af9c725d74bf16cbf90747d02 (diff)
some ansi; khalek@linuxgamers.net
Diffstat (limited to 'sbin/restore/restore.c')
-rw-r--r--sbin/restore/restore.c47
1 files changed, 15 insertions, 32 deletions
diff --git a/sbin/restore/restore.c b/sbin/restore/restore.c
index 9b8d38be8c2..60b460d2895 100644
--- a/sbin/restore/restore.c
+++ b/sbin/restore/restore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: restore.c,v 1.12 2003/07/29 18:38:36 deraadt Exp $ */
+/* $OpenBSD: restore.c,v 1.13 2004/07/17 02:14:33 deraadt Exp $ */
/* $NetBSD: restore.c,v 1.9 1997/06/18 07:10:16 lukem Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)restore.c 8.3 (Berkeley) 9/13/94";
#else
-static const char rcsid[] = "$OpenBSD: restore.c,v 1.12 2003/07/29 18:38:36 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: restore.c,v 1.13 2004/07/17 02:14:33 deraadt Exp $";
#endif
#endif /* not lint */
@@ -56,10 +56,7 @@ static char *keyval(int);
* 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;
@@ -503,8 +491,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];
@@ -525,7 +512,7 @@ keyval(key)
* Find unreferenced link names.
*/
void
-findunreflinks()
+findunreflinks(void)
{
struct entry *ep, *np;
ino_t i;
@@ -573,7 +560,7 @@ findunreflinks()
* time O(N).
*/
void
-removeoldnodes()
+removeoldnodes(void)
{
struct entry *ep, **prev;
long change;
@@ -602,8 +589,7 @@ removeoldnodes()
* Extract new leaves.
*/
void
-createleaves(symtabfile)
- char *symtabfile;
+createleaves(char *symtabfile)
{
struct entry *ep;
ino_t first;
@@ -682,7 +668,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;
@@ -770,7 +756,7 @@ createfiles()
* Add links.
*/
void
-createlinks()
+createlinks(void)
{
struct entry *np, *ep;
ino_t i;
@@ -810,7 +796,7 @@ createlinks()
* that no temporary names remain.
*/
void
-checkrestore()
+checkrestore(void)
{
struct entry *ep;
ino_t i;
@@ -832,10 +818,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;