diff options
author | charnier <charnier@FreeBSD.org> | 1998-07-28 06:20:16 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1998-07-28 06:20:16 +0000 |
commit | fbfb398b38056006ff0b633f6a6b17824fae8a7f (patch) | |
tree | ebaabb894695876e497c4139aff2bf9f748a0a62 /sbin/restore/interactive.c | |
parent | 39614096be6a83865a0e929b75441f8656f5bd9d (diff) | |
download | FreeBSD-src-fbfb398b38056006ff0b633f6a6b17824fae8a7f.zip FreeBSD-src-fbfb398b38056006ff0b633f6a6b17824fae8a7f.tar.gz |
Add rcsid. Remove unused #includes. Add missing prototypes and others -Wall
cleanings. Spelling.
Diffstat (limited to 'sbin/restore/interactive.c')
-rw-r--r-- | sbin/restore/interactive.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c index 600cc90..09548c5 100644 --- a/sbin/restore/interactive.c +++ b/sbin/restore/interactive.c @@ -32,16 +32,18 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)interactive.c 8.5 (Berkeley) 5/1/95"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/param.h> -#include <sys/time.h> #include <sys/stat.h> #include <ufs/ufs/dinode.h> #include <ufs/ufs/dir.h> -#include <ufs/ffs/fs.h> #include <protocols/dumprestore.h> #include <setjmp.h> @@ -436,7 +438,7 @@ copynext(input, output) /* * Canonicalize file names to always start with ``./'' and - * remove any imbedded "." and ".." components. + * remove any embedded "." and ".." components. */ void canon(rawname, canonname, len) @@ -452,7 +454,7 @@ canon(rawname, canonname, len) else (void) strcpy(canonname, "./"); if (strlen(canonname) + strlen(rawname) >= len) { - fprintf(stderr, "canonname: not enough bufferspace\n"); + fprintf(stderr, "canonname: not enough buffer space\n"); done(1); } @@ -522,7 +524,7 @@ printlist(name, basename) } } else { entries = 0; - while (dp = rst_readdir(dirp)) + while ((dp = rst_readdir(dirp))) entries++; rst_closedir(dirp); list = (struct afile *)malloc(entries * sizeof(struct afile)); @@ -538,7 +540,7 @@ printlist(name, basename) (void) strncpy(locname, name, MAXPATHLEN); (void) strncat(locname, "/", MAXPATHLEN); namelen = strlen(locname); - while (dp = rst_readdir(dirp)) { + while ((dp = rst_readdir(dirp))) { if (dp == NULL) break; if (!dflag && TSTINO(dp->d_ino, dumpmap) == 0) |