From b7ab9363c6e2655569be4922a449075200c3d990 Mon Sep 17 00:00:00 2001 From: Shruti Sampat Date: Tue, 11 Nov 2014 00:58:15 +0530 Subject: [PATCH] 4962 libnsl: unused variable in clnt_dg_geterr() Reviewed by: Marcel Telka Approved by: Robert Mustacchi --- usr/src/lib/libnsl/rpc/clnt_dg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/src/lib/libnsl/rpc/clnt_dg.c b/usr/src/lib/libnsl/rpc/clnt_dg.c index ad1ec2007b..c3299cb42d 100644 --- a/usr/src/lib/libnsl/rpc/clnt_dg.c +++ b/usr/src/lib/libnsl/rpc/clnt_dg.c @@ -35,6 +35,9 @@ * 4.3 BSD under license from the Regents of the University of * California. */ +/* + * Copyright 2014 Shruti V Sampat + */ /* * Implements a connectionless client side RPC. @@ -55,7 +58,7 @@ #include #include #include - +#include extern int __rpc_timeval_to_msec(struct timeval *); extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *); @@ -682,9 +685,7 @@ clnt_dg_send(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, caddr_t argsp) static void clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) { -/* LINTED pointer alignment */ - struct cu_data *cu = (struct cu_data *)cl->cl_private; - + NOTE(ARGUNUSED(cl)) *errp = rpc_callerr; } -- 2.11.4.GIT