From 4a65b846e1262810668c5e103e90820d61de7d45 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 15 Aug 2015 19:41:00 +0000 Subject: Use signed variables to store the result of rpc_call(). --- sys/lib/libsa/nfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/lib/libsa') diff --git a/sys/lib/libsa/nfs.c b/sys/lib/libsa/nfs.c index e80a35be669..2b85570a652 100644 --- a/sys/lib/libsa/nfs.c +++ b/sys/lib/libsa/nfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs.c,v 1.12 2014/11/19 20:28:56 miod Exp $ */ +/* $OpenBSD: nfs.c,v 1.13 2015/08/15 19:40:59 miod Exp $ */ /* $NetBSD: nfs.c,v 1.19 1996/10/13 02:29:04 christos Exp $ */ /*- @@ -121,7 +121,7 @@ nfs_getrootfh(struct iodesc *d, const char *path, u_char *fhp) u_int32_t h[RPC_HEADER_WORDS]; struct repl d; } rdata; - size_t cc; + ssize_t cc; #ifdef NFS_DEBUG if (debug) @@ -280,7 +280,7 @@ nfs_readdata(struct nfs_iodesc *d, off_t off, void *addr, size_t len) u_int32_t h[RPC_HEADER_WORDS]; struct nfs_read_repl d; } rdata; - size_t cc; + ssize_t cc; long x; int hlen, rlen; -- cgit v1.2.3