From b9c89cf40bc9563ad83acfede581627718d656ee Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Thu, 13 Jan 2000 09:38:26 +0000 Subject: [PATCH] Small compile warnings (on alpha). --- dump/traverse.c | 8 ++++---- restore/interactive.c | 4 ++-- restore/tape.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dump/traverse.c b/dump/traverse.c index 9c275c1..3c0c378 100644 --- a/dump/traverse.c +++ b/dump/traverse.c @@ -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 @@ -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; diff --git a/restore/interactive.c b/restore/interactive.c index 1bfd201..f015725 100644 --- a/restore/interactive.c +++ b/restore/interactive.c @@ -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 @@ -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) { diff --git a/restore/tape.c b/restore/tape.c index 8edca63..e62c961 100644 --- a/restore/tape.c +++ b/restore/tape.c @@ -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 @@ -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"); -- 2.39.5