Use printf formats which match the variable types without casts so we
can go back to using -Werror in higher WARNS levels.
This commit is contained in:
parent
59677d3c0e
commit
242ef17d6d
@ -363,8 +363,8 @@ dumppacket(fd, dir, source, cp, size)
|
||||
fprintf(fd, "Bad cmd 0x%x %s %s#%x\n", ntohs(msg->rip_cmd),
|
||||
dir, ipxdp_ntoa(&who->sipx_addr),
|
||||
ntohs(who->sipx_addr.x_port));
|
||||
fprintf(fd, "size=%d cp=%lx packet=%x\n", size,
|
||||
(u_long)cp, (u_int)packet);
|
||||
fprintf(fd, "size=%d cp=%p packet=%p\n", size,
|
||||
cp, packet);
|
||||
return;
|
||||
}
|
||||
switch (ntohs(msg->rip_cmd)) {
|
||||
@ -407,8 +407,8 @@ dumpsappacket(fd, dir, source, cp, size)
|
||||
fprintf(fd, "Bad cmd 0x%x %s %s#%x\n", ntohs(msg->sap_cmd),
|
||||
dir, ipxdp_ntoa(&who->sipx_addr),
|
||||
ntohs(who->sipx_addr.x_port));
|
||||
fprintf(fd, "size=%d cp=%lx packet=%x\n", size,
|
||||
(u_long)cp, (u_int)packet);
|
||||
fprintf(fd, "size=%d cp=%p packet=%p\n", size,
|
||||
cp, packet);
|
||||
return;
|
||||
}
|
||||
switch (ntohs(msg->sap_cmd)) {
|
||||
|
Loading…
Reference in New Issue
Block a user