From ee4b9334d134a020a5a2e551d381f0c13625afb8 Mon Sep 17 00:00:00 2001 From: jb Date: Sat, 17 Nov 2007 23:09:39 +0000 Subject: Use printf formats which match the variable types without casts so we can go back to using -Werror in higher WARNS levels. --- usr.sbin/IPXrouted/trace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/IPXrouted/trace.c b/usr.sbin/IPXrouted/trace.c index f1f86fa..d9e74b8 100644 --- a/usr.sbin/IPXrouted/trace.c +++ b/usr.sbin/IPXrouted/trace.c @@ -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)) { -- cgit v1.1