#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>
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;
/* 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 */
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;
#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>
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) {
#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>
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");
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");