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
This commit is contained in:
parent
4893027ac4
commit
8a0453d614
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user