From 6763fe0b2043dc81399526e70421e979bbfee7b3 Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 15 Nov 2003 01:24:46 +0000 Subject: Fix compilation warnings on sparc. Cast sizeof to int for printing with %d. --- sys/rpc/rpcclnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/rpc/rpcclnt.c') diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c index 4f61f29..a0ae12c 100644 --- a/sys/rpc/rpcclnt.c +++ b/sys/rpc/rpcclnt.c @@ -837,8 +837,8 @@ tryagain: if (!error && auio.uio_resid > 0) { log(LOG_INFO, "short receive (%d/%d) from rpc server %s\n", - sizeof(u_int32_t) - auio.uio_resid, - sizeof(u_int32_t), + (int) sizeof(u_int32_t) - auio.uio_resid, + (int) sizeof(u_int32_t), rep->r_rpcclnt->rc_prog->prog_name); error = EPIPE; } -- cgit v1.1