diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-01 07:32:35 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-01 07:32:35 +0000 |
commit | ff68307fb48ebed764757b9f0ff301df2f3d8825 (patch) | |
tree | f9d9eb1c19ab77a5348df2e640c1b602cb995aad /lib/libc/rpc | |
parent | 194e32cbb7f3822a9951dce328c2033e9808f264 (diff) | |
download | FreeBSD-src-ff68307fb48ebed764757b9f0ff301df2f3d8825.zip FreeBSD-src-ff68307fb48ebed764757b9f0ff301df2f3d8825.tar.gz |
MFC r278932:
r278932 (by pfg):
libc: clean some set-but-not-used errors.
These were found by gcc 5.0 on Dragonfly BSD, however I
made no attempt to silence the false positives.
Obtained from: DragonFly (cf515c3a6f3a8964ad592e524442bc628f8ed63b)
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/clnt_dg.c | 3 | ||||
-rw-r--r-- | lib/libc/rpc/rpc_soc.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/rpc/clnt_dg.c b/lib/libc/rpc/clnt_dg.c index 5feab88..cebbaf9 100644 --- a/lib/libc/rpc/clnt_dg.c +++ b/lib/libc/rpc/clnt_dg.c @@ -327,7 +327,7 @@ clnt_dg_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout) struct sockaddr *sa; sigset_t mask; sigset_t newmask; - socklen_t inlen, salen; + socklen_t salen; ssize_t recvlen = 0; int kin_len, n, rpc_lock_value; u_int32_t xid; @@ -520,7 +520,6 @@ get_reply: goto call_again_same_xid; } } - inlen = (socklen_t)recvlen; /* * now decode and validate the response diff --git a/lib/libc/rpc/rpc_soc.c b/lib/libc/rpc/rpc_soc.c index fbcec05..8d0f34e 100644 --- a/lib/libc/rpc/rpc_soc.c +++ b/lib/libc/rpc/rpc_soc.c @@ -462,12 +462,10 @@ clntunix_create(raddr, prog, vers, sockp, sendsz, recvsz) u_int recvsz; { struct netbuf *svcaddr; - struct netconfig *nconf; CLIENT *cl; int len; cl = NULL; - nconf = NULL; svcaddr = NULL; if ((raddr->sun_len == 0) || ((svcaddr = malloc(sizeof(struct netbuf))) == NULL ) || |