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