summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/dump/Makefile1
-rw-r--r--sbin/dump/dumprmt.c2
-rw-r--r--sbin/dump/main.c7
3 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dump/Makefile b/sbin/dump/Makefile
index 2dd6fda..608162a 100644
--- a/sbin/dump/Makefile
+++ b/sbin/dump/Makefile
@@ -16,7 +16,6 @@
PROG= dump
LINKS= ${BINDIR}/dump ${BINDIR}/rdump
CFLAGS+=-DRDUMP
-WARNS= 0
SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c cache.c
MAN= dump.8
MLINKS= dump.8 rdump.8
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c
index 85e811e..4b01beb 100644
--- a/sbin/dump/dumprmt.c
+++ b/sbin/dump/dumprmt.c
@@ -159,7 +159,7 @@ rmtgetconn(void)
tuser = pwd->pw_name;
if ((rmt = getenv("RMT")) == NULL)
rmt = _PATH_RMT;
- msg("");
+ msg("%s", "");
rmtape = rcmd(&rmtpeer, (u_short)sp->s_port, pwd->pw_name,
tuser, rmt, &errfd);
if (rmtape < 0) {
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