Cast size_t to u_long before printing, and use %lu instead of %d as format.
Fixes compilation on alpha.
This commit is contained in:
parent
412d4e7d1b
commit
022f01cef7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfs.c,v 1.33 2003/08/31 22:40:48 fvdl Exp $ */
|
||||
/* $NetBSD: nfs.c,v 1.34 2003/09/03 12:43:41 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993 John Brezak
|
||||
@ -347,7 +347,7 @@ nfs_readdata(d, off, addr, len)
|
||||
rlen = cc - hlen;
|
||||
x = ntohl(repl->count);
|
||||
if (rlen < (size_t)x) {
|
||||
printf("nfsread: short packet, %d < %ld\n", rlen, x);
|
||||
printf("nfsread: short packet, %lu < %ld\n", (u_long) rlen, x);
|
||||
errno = EBADRPC;
|
||||
return(-1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user