X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Futilities.c;h=e897344a1e0a85ef5bec3d5f0bdb9aee51fae362;hb=97d9098250fd2a49d9ef70d6bf93f49badff0f6c;hp=4960b9ab4e3a5e8d9757c9d546e4b3de99df5ef0;hpb=e51470bfc05d83f82c37d24504220c7163bbd4c1;p=dump.git diff --git a/restore/utilities.c b/restore/utilities.c index 4960b9a..e897344 100644 --- a/restore/utilities.c +++ b/restore/utilities.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: utilities.c,v 1.18 2002/01/25 14:59:53 stelian Exp $"; + "$Id: utilities.c,v 1.20 2002/02/04 11:18:46 stelian Exp $"; #endif /* not lint */ #include @@ -78,7 +78,7 @@ static const char rcsid[] = void pathcheck(char *name) { - register char *cp; + char *cp; struct entry *ep; char *start; @@ -236,7 +236,7 @@ linkit(char *existing, char *new, int type) if (!Nflag && (ret = link(existing, new)) < 0) { -#ifndef __linux__ +#if !defined(__linux__) && !defined(sunos) struct stat s; /* @@ -276,7 +276,7 @@ linkit(char *existing, char *new, int type) return (GOOD); } -#ifndef __linux__ +#if !defined(__linux__) && !defined(sunos) /* * Create a whiteout. */ @@ -319,7 +319,7 @@ delwhiteout(struct entry *ep) dump_ino_t lowerbnd(dump_ino_t start) { - register struct entry *ep; + struct entry *ep; for ( ; start < maxino; start++) { ep = lookupino(start); @@ -337,7 +337,7 @@ lowerbnd(dump_ino_t start) dump_ino_t upperbnd(dump_ino_t start) { - register struct entry *ep; + struct entry *ep; for ( ; start > ROOTINO; start--) { ep = lookupino(start);