summaryrefslogtreecommitdiff
path: root/usr/src/ucblib
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-08-10 23:13:49 +0300
committerRichard Lowe <richlowe@richlowe.net>2017-10-16 09:35:22 -0400
commit3c6b90be1d51de874ba4c1f05537c85375b6ab6e (patch)
treeb23edf9098068907979edd78ed6d2ef1abd89a0e /usr/src/ucblib
parentd8b4f927017620c0d78dc3b4fd238ed58bbb4b42 (diff)
downloadillumos-gate-3c6b90be1d51de874ba4c1f05537c85375b6ab6e.tar.gz
8716 librpcsoc: variable set but not used
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/ucblib')
-rw-r--r--usr/src/ucblib/librpcsoc/clnt_tcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/ucblib/librpcsoc/clnt_tcp.c b/usr/src/ucblib/librpcsoc/clnt_tcp.c
index b2dccbc20a..a005ae935f 100644
--- a/usr/src/ucblib/librpcsoc/clnt_tcp.c
+++ b/usr/src/ucblib/librpcsoc/clnt_tcp.c
@@ -119,7 +119,6 @@ clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
register struct ct_data *ct;
struct timeval now;
struct rpc_msg call_msg;
- int i;
h = (CLIENT *)mem_alloc(sizeof (*h));
if (h == NULL) {
@@ -155,7 +154,7 @@ clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
*/
if (*sockp < 0) {
*sockp = _socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
- i = bindresvport(*sockp, (struct sockaddr_in *)0);
+ (void) bindresvport(*sockp, (struct sockaddr_in *)0);
if ((*sockp < 0)||
(connect(*sockp, (struct sockaddr *)raddr,
sizeof (*raddr)) < 0)) {