mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122669
@ -16,7 +16,6 @@
|
|||||||
PROG= dump
|
PROG= dump
|
||||||
LINKS= ${BINDIR}/dump ${BINDIR}/rdump
|
LINKS= ${BINDIR}/dump ${BINDIR}/rdump
|
||||||
CFLAGS+=-DRDUMP
|
CFLAGS+=-DRDUMP
|
||||||
WARNS= 0
|
|
||||||
SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c cache.c
|
SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c cache.c
|
||||||
MAN= dump.8
|
MAN= dump.8
|
||||||
MLINKS= dump.8 rdump.8
|
MLINKS= dump.8 rdump.8
|
||||||
|
@ -159,7 +159,7 @@ rmtgetconn(void)
|
|||||||
tuser = pwd->pw_name;
|
tuser = pwd->pw_name;
|
||||||
if ((rmt = getenv("RMT")) == NULL)
|
if ((rmt = getenv("RMT")) == NULL)
|
||||||
rmt = _PATH_RMT;
|
rmt = _PATH_RMT;
|
||||||
msg("");
|
msg("%s", "");
|
||||||
rmtape = rcmd(&rmtpeer, (u_short)sp->s_port, pwd->pw_name,
|
rmtape = rcmd(&rmtpeer, (u_short)sp->s_port, pwd->pw_name,
|
||||||
tuser, rmt, &errfd);
|
tuser, rmt, &errfd);
|
||||||
if (rmtape < 0) {
|
if (rmtape < 0) {
|
||||||
|
@ -62,9 +62,9 @@ static const char rcsid[] =
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <fstab.h>
|
#include <fstab.h>
|
||||||
#include <inttypes.h>
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -545,8 +545,9 @@ main(int argc, char *argv[])
|
|||||||
if (tend_writing - tstart_writing == 0)
|
if (tend_writing - tstart_writing == 0)
|
||||||
msg("finished in less than a second\n");
|
msg("finished in less than a second\n");
|
||||||
else
|
else
|
||||||
msg("finished in %d seconds, throughput %jd KBytes/sec\n",
|
msg("finished in %jd seconds, throughput %jd KBytes/sec\n",
|
||||||
tend_writing - tstart_writing, (intmax_t)(spcl.c_tapea /
|
(intmax_t)tend_writing - tstart_writing,
|
||||||
|
(intmax_t)(spcl.c_tapea /
|
||||||
(tend_writing - tstart_writing)));
|
(tend_writing - tstart_writing)));
|
||||||
|
|
||||||
putdumptime();
|
putdumptime();
|
||||||
|
Loading…
Reference in New Issue
Block a user