X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Futilities.c;h=34f9f8d7f14c4f8bba849178577088e708d0d6c3;hb=816bf0d9a643ed425d9677064d58b626d7df7b70;hp=b32c21f2a0614d6aaff0ef13a4a667d742bba603;hpb=0a99352128efc4af44160eee69e8990686bf9ad5;p=dump.git diff --git a/restore/utilities.c b/restore/utilities.c index b32c21f..34f9f8d 100644 --- a/restore/utilities.c +++ b/restore/utilities.c @@ -2,8 +2,8 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999-2000 - * Stelian Pop - Alcôve , 2000 + * Stelian Pop , 1999-2000 + * Stelian Pop - Alcôve , 2000 */ /* @@ -41,31 +41,29 @@ #ifndef lint static const char rcsid[] = - "$Id: utilities.c,v 1.9 2000/11/10 14:42:25 stelian Exp $"; + "$Id: utilities.c,v 1.13 2001/03/20 10:02:48 stelian Exp $"; #endif /* not lint */ +#include +#include +#include +#include +#include +#include + #include #include #ifdef __linux__ #include #include +#include #include #else /* __linux__ */ #include #include #endif /* __linux__ */ -#include -#include -#include -#include -#include - -#ifdef __linux__ -#include -#endif - #include "restore.h" #include "extern.h" @@ -313,8 +311,8 @@ delwhiteout(struct entry *ep) /* * find lowest number file (above "start") that needs to be extracted */ -ino_t -lowerbnd(ino_t start) +dump_ino_t +lowerbnd(dump_ino_t start) { register struct entry *ep; @@ -331,8 +329,8 @@ lowerbnd(ino_t start) /* * find highest number file (below "start") that needs to be extracted */ -ino_t -upperbnd(ino_t start) +dump_ino_t +upperbnd(dump_ino_t start) { register struct entry *ep; @@ -399,11 +397,11 @@ flagvalues(struct entry *ep) /* * Check to see if a name is on a dump tape. */ -ino_t +dump_ino_t dirlookup(const char *name) { struct direct *dp; - ino_t ino; + dump_ino_t ino; ino = ((dp = pathsearch(name)) == NULL) ? 0 : dp->d_ino;