mtest: build with WARNS=3
This commit is contained in:
parent
6930346f0f
commit
d67c790d71
@ -6,7 +6,7 @@ PROG= mtest
|
|||||||
MAN= mtest.8
|
MAN= mtest.8
|
||||||
|
|
||||||
BINMODE= 555
|
BINMODE= 555
|
||||||
WARNS?= 2
|
WARNS?= 3
|
||||||
|
|
||||||
# XXX This assumes INET support in the base system.
|
# XXX This assumes INET support in the base system.
|
||||||
CFLAGS+=-DINET
|
CFLAGS+=-DINET
|
||||||
|
@ -388,6 +388,7 @@ process_cmd(char *cmd, int s, int s6, FILE *fp __unused)
|
|||||||
void *optval;
|
void *optval;
|
||||||
uint32_t fmode, ifindex;
|
uint32_t fmode, ifindex;
|
||||||
socklen_t optlen;
|
socklen_t optlen;
|
||||||
|
size_t j;
|
||||||
int af, error, f, flags, i, level, n, optname;
|
int af, error, f, flags, i, level, n, optname;
|
||||||
|
|
||||||
af = AF_UNSPEC;
|
af = AF_UNSPEC;
|
||||||
@ -736,8 +737,8 @@ process_cmd(char *cmd, int s, int s6, FILE *fp __unused)
|
|||||||
nsrc = MIN(nreqsrc, nsrc);
|
nsrc = MIN(nreqsrc, nsrc);
|
||||||
fprintf(stderr, "hexdump of sources:\n");
|
fprintf(stderr, "hexdump of sources:\n");
|
||||||
uint8_t *bp = (uint8_t *)&sources[0];
|
uint8_t *bp = (uint8_t *)&sources[0];
|
||||||
for (i = 0; i < (nsrc * sizeof(sources[0])); i++) {
|
for (j = 0; j < (nsrc * sizeof(sources[0])); j++) {
|
||||||
fprintf(stderr, "%02x", bp[i]);
|
fprintf(stderr, "%02x", bp[j]);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "\nend hexdump\n");
|
fprintf(stderr, "\nend hexdump\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user