diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 05:33:59 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 05:33:59 +0000 |
commit | c64cf72312cb0f46c93bc921e59063963187caf0 (patch) | |
tree | 72eb0e042d8ff99e1a3bd99b96bbc68a28e3d468 /usr.sbin/IPXrouted | |
parent | 7b2e1ddf315205da1a3743fe1c7b4b24e40f203a (diff) | |
download | FreeBSD-src-c64cf72312cb0f46c93bc921e59063963187caf0.zip FreeBSD-src-c64cf72312cb0f46c93bc921e59063963187caf0.tar.gz |
Make 64 bit safe.
Diffstat (limited to 'usr.sbin/IPXrouted')
-rw-r--r-- | usr.sbin/IPXrouted/input.c | 4 | ||||
-rw-r--r-- | usr.sbin/IPXrouted/trace.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/IPXrouted/input.c b/usr.sbin/IPXrouted/input.c index a2e8c26..b971326 100644 --- a/usr.sbin/IPXrouted/input.c +++ b/usr.sbin/IPXrouted/input.c @@ -129,8 +129,8 @@ rip_input(from, size) "specific request for %s", ipxdp_nettoa(n->rip_dst)); fprintf(ftrace, - " yields route %x\n", - (u_int)rt); + " yields route %lx\n", + (u_long)rt); } /* * XXX We break out on the first net that isn't diff --git a/usr.sbin/IPXrouted/trace.c b/usr.sbin/IPXrouted/trace.c index 4ddb1da..36f8047 100644 --- a/usr.sbin/IPXrouted/trace.c +++ b/usr.sbin/IPXrouted/trace.c @@ -364,8 +364,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=%x packet=%x\n", size, - (u_int)cp, (u_int)packet); + fprintf(fd, "size=%d cp=%lx packet=%x\n", size, + (u_long)cp, (u_int)packet); return; } switch (ntohs(msg->rip_cmd)) { @@ -408,8 +408,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=%x packet=%x\n", size, - (u_int)cp, (u_int)packet); + fprintf(fd, "size=%d cp=%lx packet=%x\n", size, + (u_long)cp, (u_int)packet); return; } switch (ntohs(msg->sap_cmd)) { |