]> git.wh0rd.org - dump.git/commitdiff
Small compile warnings (on alpha).
authorStelian Pop <stelian@popies.net>
Thu, 13 Jan 2000 09:38:26 +0000 (09:38 +0000)
committerStelian Pop <stelian@popies.net>
Thu, 13 Jan 2000 09:38:26 +0000 (09:38 +0000)
dump/traverse.c
restore/interactive.c
restore/tape.c

index 9c275c1a1d4934a658943151c9118c82f8c084ba..3c0c378cb66b1c4a7dfdfb2f08deb34e2ad82417 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: traverse.c,v 1.12 2000/01/09 23:47:33 tiniou Exp $";
+       "$Id: traverse.c,v 1.13 2000/01/13 09:38:26 stelian Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -667,7 +667,7 @@ dumpino(struct dinode *dp, ino_t ino)
        obi.di_gen = dp->di_gen;
        memmove(&obi.di_db, &dp->di_db, (NDADDR + NIADDR) * sizeof(daddr_t));
        if (dp->di_file_acl || dp->di_dir_acl)
-               warn("ACLs in inode #%ld won't be dumped", ino);
+               warn("ACLs in inode #%ld won't be dumped", (long)ino);
        memmove(&spcl.c_dinode, &obi, sizeof(obi));
 #else  /* __linux__ */
        spcl.c_dinode = *dp;
@@ -850,7 +850,7 @@ dumpdirino(struct dinode *dp, ino_t ino)
        /* Do the conversion */
        retval = ext2fs_dir_iterate(fs, ino, 0, NULL, convert_dir, (void *)&cdc);
        if (retval) {
-               com_err(disk, retval, "while converting directory #%ld\n", ino);
+               com_err(disk, retval, "while converting directory #%ld\n", (long)ino);
                exit(X_ABORT);
        }
        /* Fix the last entry */
@@ -877,7 +877,7 @@ dumpdirino(struct dinode *dp, ino_t ino)
        obi.di_gen = dp->di_gen;
        memmove(&obi.di_db, &dp->di_db, (NDADDR + NIADDR) * sizeof(daddr_t));
        if (dp->di_file_acl || dp->di_dir_acl)
-               warn("ACLs in inode #%ld won't be dumped", ino);
+               warn("ACLs in inode #%ld won't be dumped", (long)ino);
        memmove(&spcl.c_dinode, &obi, sizeof(obi));
 #else  /* __linux__ */
        spcl.c_dinode = *dp;
index 1bfd201789c725f4b18bae862505c755502a817f..f01572572565234e2d0936ce43b37248730dcb6e 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: interactive.c,v 1.6 1999/10/13 09:57:20 stelian Exp $";
+       "$Id: interactive.c,v 1.7 2000/01/13 09:38:26 stelian Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -690,7 +690,7 @@ formatf(struct afile *list, int nentry)
                for (j = 0; j < columns; j++) {
                        fp = &list[j * lines + i];
                        if (vflag) {
-                               fprintf(stderr, "%*ld ", precision, fp->fnum);
+                               fprintf(stderr, "%*ld ", precision, (long)fp->fnum);
                                fp->len += precision + 1;
                        }
                        if (haveprefix) {
index 8edca6314dd0528147cc655fc2ebdf88fe448f8b..e62c961a07bbfb3be5d640b163991e869178ef07 100644 (file)
@@ -45,7 +45,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.9 1999/11/22 21:39:42 tiniou Exp $";
+       "$Id: tape.c,v 1.10 2000/01/13 09:38:26 stelian Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -262,7 +262,7 @@ setup(void)
        if (spcl.c_type != TS_CLRI)
                errx(1, "Cannot find file removal list");
        maxino = (spcl.c_count * TP_BSIZE * NBBY) + 1;
-       Dprintf(stdout, "maxino = %ld\n", maxino);
+       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");
@@ -1439,7 +1439,7 @@ accthdr(struct s_spcl *header)
                fprintf(stderr, "File header, ino %lu", (unsigned long)previno);
                break;
        case TS_ADDR:
-               fprintf(stderr, "File continuation header, ino %ld", previno);
+               fprintf(stderr, "File continuation header, ino %ld", (long)previno);
                break;
        case TS_END:
                fprintf(stderr, "End of tape header");