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:
he 2003-09-03 12:43:41 +00:00
parent 412d4e7d1b
commit 022f01cef7
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}