diff options
author | 2015-08-15 19:40:59 +0000 | |
---|---|---|
committer | 2015-08-15 19:40:59 +0000 | |
commit | afcdb1c990f5101d40652307736b3d5d3a7c4a52 (patch) | |
tree | 25431785824479be8adc59998f0785efb83abe1c /sys/lib | |
parent | Do not perform timeout maintainance on sc->poll_timeout if it has not been (diff) | |
download | wireguard-openbsd-afcdb1c990f5101d40652307736b3d5d3a7c4a52.tar.xz wireguard-openbsd-afcdb1c990f5101d40652307736b3d5d3a7c4a52.zip |
Use signed variables to store the result of rpc_call().
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/libsa/nfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |