diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-06-18 10:00:46 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-06-18 10:00:46 +0000 |
commit | e66a39f25edf4eacf6e472cab19c8c3f05481446 (patch) | |
tree | 14a26617d9a292e5b5e3466c13dbd42e5e27d99a /cpukit/libfs | |
parent | 2010-06-18 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-e66a39f25edf4eacf6e472cab19c8c3f05481446.tar.bz2 |
2010-06-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/if_ether.c: Misc. 64bit fixes from FreeBSD.
* libfs/src/nfsclient/src/rpcio.c: Misc. 64bit fixes.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/rpcio.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/libfs/src/nfsclient/src/rpcio.c b/cpukit/libfs/src/nfsclient/src/rpcio.c index d462774558..3316cccb5f 100644 --- a/cpukit/libfs/src/nfsclient/src/rpcio.c +++ b/cpukit/libfs/src/nfsclient/src/rpcio.c @@ -65,6 +65,8 @@ #include "config.h" #endif +#include <inttypes.h> + #include <rtems.h> #include <rtems/error.h> #include <rtems/rtems_bsdnet.h> @@ -1658,7 +1660,7 @@ static RpcUdpXact sockRcv(void) { int len,i; -u_long xid; +uint32_t xid; union { struct sockaddr_in sin; struct sockaddr sa; @@ -1743,9 +1745,9 @@ RpcUdpXact xact = 0; #endif } else { fprintf(stderr,"RPCIO WARNING sockRcv(): transaction mismatch\n"); - fprintf(stderr,"xact: xid 0x%08lx -- got 0x%08lx\n", + fprintf(stderr,"xact: xid 0x%08" PRIx32 " -- got 0x%08" PRIx32 "\n", xact->obuf.xid, xid); - fprintf(stderr,"xact: addr 0x%08lx -- got 0x%08lx\n", + fprintf(stderr,"xact: addr 0x%08" PRIx32 " -- got 0x%08" PRIx32 "\n", xact->server->addr.sin.sin_addr.s_addr, fromAddr.sin.sin_addr.s_addr); fprintf(stderr,"xact: port 0x%08x -- got 0x%08x\n", @@ -1754,7 +1756,7 @@ RpcUdpXact xact = 0; } } else { fprintf(stderr, - "RPCIO WARNING sockRcv(): got xid 0x%08lx but its slot is empty\n", + "RPCIO WARNING sockRcv(): got xid 0x%08" PRIx32 " but its slot is empty\n", xid); } /* forget about this one and try again */ |