]> git.wh0rd.org - dump.git/commitdiff
typo
authorStelian Pop <stelian@popies.net>
Thu, 26 Apr 2001 08:59:32 +0000 (08:59 +0000)
committerStelian Pop <stelian@popies.net>
Thu, 26 Apr 2001 08:59:32 +0000 (08:59 +0000)
restore/main.c

index 8f189d4bba44db5b414695309b1a1b453bb8a2a0..09aa8c7b4fed75cbf54e2be292fd9c47ff9dc706 100644 (file)
@@ -41,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.22 2001/04/24 15:04:59 stelian Exp $";
+       "$Id: main.c,v 1.23 2001/04/26 08:59:32 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -118,9 +118,11 @@ main(int argc, char *argv[])
        FILE *filelist = NULL;
        char fname[MAXPATHLEN];
 #ifdef USE_QFA
        FILE *filelist = NULL;
        char fname[MAXPATHLEN];
 #ifdef USE_QFA
-       time_t tistart, tiend, titaken;
        tapeposflag = 0;
 #endif
        tapeposflag = 0;
 #endif
+#ifdef USE_QFADEBUG
+       time_t tistart, tiend, titaken;
+#endif
 
        /* Temp files should *not* be readable.  We set permissions later. */
        (void) umask(077);
 
        /* Temp files should *not* be readable.  We set permissions later. */
        (void) umask(077);
@@ -251,7 +253,7 @@ main(int argc, char *argv[])
 
 #ifdef USE_QFA
        if (!mflag && tapeposflag)
 
 #ifdef USE_QFA
        if (!mflag && tapeposflag)
-               errx(1, "m and Q options are mutually exclusive"):
+               errx(1, "m and Q options are mutually exclusive");
 #endif
 
        if (signal(SIGINT, onintr) == SIG_IGN)
 #endif
 
        if (signal(SIGINT, onintr) == SIG_IGN)
@@ -435,7 +437,7 @@ main(int argc, char *argv[])
         * Batch extraction of tape contents.
         */
        case 'x':
         * Batch extraction of tape contents.
         */
        case 'x':
-#ifdef USE_QFA
+#ifdef USE_QFADEBUG
                tistart = time(NULL);
 #endif
                setup();
                tistart = time(NULL);
 #endif
                setup();
@@ -458,14 +460,12 @@ main(int argc, char *argv[])
                setdirmodes(0);
                if (dflag)
                        checkrestore();
                setdirmodes(0);
                if (dflag)
                        checkrestore();
-#ifdef USE_QFA
+#ifdef USE_QFADEBUG
                tiend = time(NULL);
                titaken = tiend - tistart;
                tiend = time(NULL);
                titaken = tiend - tistart;
-#ifdef USE_QFA
                msg("restore took %d:%02d:%02d\n", titaken / 3600, 
                        (titaken % 3600) / 60, titaken % 60);
                msg("restore took %d:%02d:%02d\n", titaken / 3600, 
                        (titaken % 3600) / 60, titaken % 60);
-#endif
-#endif
+#endif /* USE_QFADEBUG */
                break;
        }
        exit(0);
                break;
        }
        exit(0);