Use %zu to printf a size_t instead of an int cast.

Requested by: jmallett, wollman
This commit is contained in:
alfred 2003-11-15 01:58:47 +00:00
parent 83c176d388
commit 474da08de0

View File

@ -836,9 +836,9 @@ rpcclnt_receive(rep, aname, mp, td)
} while (error == EWOULDBLOCK);
if (!error && auio.uio_resid > 0) {
log(LOG_INFO,
"short receive (%d/%d) from rpc server %s\n",
(int) sizeof(u_int32_t) - auio.uio_resid,
(int) sizeof(u_int32_t),
"short receive (%zu/%zu) from rpc server %s\n",
sizeof(u_int32_t) - auio.uio_resid,
sizeof(u_int32_t),
rep->r_rpcclnt->rc_prog->prog_name);
error = EPIPE;
}