Print this page
4962 libnsl: unused variable in clnt_dg_geterr()

*** 33,42 **** --- 33,45 ---- /* * Portions of this source code were derived from Berkeley * 4.3 BSD under license from the Regents of the University of * California. */ + /* + * Copyright 2014 Shruti V Sampat <shrutisampat@gmail.com> + */ /* * Implements a connectionless client side RPC. */
*** 53,64 **** #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <strings.h> - extern int __rpc_timeval_to_msec(struct timeval *); extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *); extern bool_t __rpc_gss_wrap(AUTH *, char *, uint_t, XDR *, bool_t (*)(), caddr_t); extern bool_t __rpc_gss_unwrap(AUTH *, XDR *, bool_t (*)(), caddr_t); --- 56,67 ---- #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <strings.h> + #include <note.h> extern int __rpc_timeval_to_msec(struct timeval *); extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *); extern bool_t __rpc_gss_wrap(AUTH *, char *, uint_t, XDR *, bool_t (*)(), caddr_t); extern bool_t __rpc_gss_unwrap(AUTH *, XDR *, bool_t (*)(), caddr_t);
*** 680,692 **** } static void clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) { ! /* LINTED pointer alignment */ ! struct cu_data *cu = (struct cu_data *)cl->cl_private; ! *errp = rpc_callerr; } static bool_t clnt_dg_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr) --- 683,693 ---- } static void clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp) { ! NOTE(ARGUNUSED(cl)) *errp = rpc_callerr; } static bool_t clnt_dg_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)