Do not assume that time_t is an int.

Approved by:	re (jhb)
This commit is contained in:
Peter Wemm 2002-11-15 22:36:57 +00:00
parent 70285c3e5f
commit cdf5e9ccb6
2 changed files with 3 additions and 3 deletions

View File

@ -353,7 +353,7 @@ inittodr(base)
deltat = -deltat;
if (deltat < 2 * SECDAY)
return;
printf("WARNING: clock %s %d days",
printf("WARNING: clock %s %ld days",
ts.tv_sec < base ? "lost" : "gained", deltat / SECDAY);
}
bad:

View File

@ -500,8 +500,8 @@ out1:
if (collectsnapstats && starttime.tv_sec > 0) {
nanotime(&endtime);
timespecsub(&endtime, &starttime);
printf("%s: suspended %d.%03ld sec, redo %ld of %d\n",
vp->v_mount->mnt_stat.f_mntonname, endtime.tv_sec,
printf("%s: suspended %ld.%03ld sec, redo %ld of %d\n",
vp->v_mount->mnt_stat.f_mntonname, (long)endtime.tv_sec,
endtime.tv_nsec / 1000000, redo, fs->fs_ncg);
}
if (sbp == NULL)