]> git.wh0rd.org - dump.git/blobdiff - restore/tape.c
MNTENT undefined on libc5...
[dump.git] / restore / tape.c
index c5d9a661adccdf0fdadb72b2ec31a6446e58c689..ec6c5fae656871e7cbc995421fa5815839f686c4 100644 (file)
@@ -3,6 +3,7 @@
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
  *     Stelian Pop <pop@cybercable.fr>, 1999-2000
+ *     Stelian Pop <pop@cybercable.fr> - AlcĂ´ve <www.alcove.fr>, 2000
  */
 
 /*
@@ -45,7 +46,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.17 2000/06/03 22:24:18 stelian Exp $";
+       "$Id: tape.c,v 1.20 2000/11/10 14:42:25 stelian Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -279,7 +280,7 @@ setup(void)
        Dprintf(stdout, "maxino = %ld\n", (long)maxino);
        map = calloc((unsigned)1, (unsigned)howmany(maxino, NBBY));
        if (map == NULL)
-               panic("no memory for active inode map\n");
+               errx(1, "no memory for active inode map");
        usedinomap = map;
        curfile.action = USING;
        getfile(xtrmap, xtrmapskip);
@@ -287,7 +288,7 @@ setup(void)
                errx(1, "Cannot find file dump list");
        map = calloc((unsigned)1, (unsigned)howmany(maxino, NBBY));
        if (map == (char *)NULL)
-               panic("no memory for file dump list\n");
+               errx(1, "no memory for file dump list");
        dumpmap = map;
        curfile.action = USING;
        getfile(xtrmap, xtrmapskip);
@@ -546,9 +547,9 @@ printdumpinfo(void)
 #endif
        if (spcl.c_host[0] == '\0')
                return;
-       fprintf(stderr, "Level %d dump of %s on %s:%s\n",
+       fprintf(stdout, "Level %d dump of %s on %s:%s\n",
                spcl.c_level, spcl.c_filesys, spcl.c_host, spcl.c_dev);
-       fprintf(stderr, "Label: %s\n", spcl.c_label);
+       fprintf(stdout, "Label: %s\n", spcl.c_label);
 }
 
 int