summaryrefslogtreecommitdiffstats
path: root/sbin/dump/main.c
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2003-11-14 13:07:38 +0000
committerjohan <johan@FreeBSD.org>2003-11-14 13:07:38 +0000
commit58da18523c187fc34f2193d4654cba5b519eda11 (patch)
treea621221425b2efb37b2257eb7259a6491c489f74 /sbin/dump/main.c
parent0105a2bc6c8f670a5f1cb5eb2201dfdbd03b4349 (diff)
downloadFreeBSD-src-58da18523c187fc34f2193d4654cba5b519eda11.zip
FreeBSD-src-58da18523c187fc34f2193d4654cba5b519eda11.tar.gz
Make this WARNS=2 clean by
- using (intmax_t) and %j - giving a non-empty format string to msg() Include <stdint.h> directly instead of depending on <inttypes.h> to do it. Tested by: make universe
Diffstat (limited to 'sbin/dump/main.c')
-rw-r--r--sbin/dump/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 54ac7f0..7940063 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -62,9 +62,9 @@ static const char rcsid[] =
#include <errno.h>
#include <fcntl.h>
#include <fstab.h>
-#include <inttypes.h>
#include <limits.h>
#include <signal.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -545,8 +545,9 @@ main(int argc, char *argv[])
if (tend_writing - tstart_writing == 0)
msg("finished in less than a second\n");
else
- msg("finished in %d seconds, throughput %jd KBytes/sec\n",
- tend_writing - tstart_writing, (intmax_t)(spcl.c_tapea /
+ msg("finished in %jd seconds, throughput %jd KBytes/sec\n",
+ (intmax_t)tend_writing - tstart_writing,
+ (intmax_t)(spcl.c_tapea /
(tend_writing - tstart_writing)));
putdumptime();
OpenPOWER on IntegriCloud