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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnsl/rpc/clnt_dg.c
          +++ new/usr/src/lib/libnsl/rpc/clnt_dg.c
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  29   29   */
  30   30  
  31   31  /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  32   32  /* All Rights Reserved */
  33   33  /*
  34   34   * Portions of this source code were derived from Berkeley
  35   35   * 4.3 BSD under license from the Regents of the University of
  36   36   * California.
  37   37   */
       38 +/*
       39 + * Copyright 2014 Shruti V Sampat <shrutisampat@gmail.com>
       40 + */
  38   41  
  39   42  /*
  40   43   * Implements a connectionless client side RPC.
  41   44   */
  42   45  
  43   46  #include "mt.h"
  44   47  #include "rpc_mt.h"
  45   48  #include <assert.h>
  46   49  #include <rpc/rpc.h>
  47   50  #include <errno.h>
  48   51  #include <sys/poll.h>
  49   52  #include <syslog.h>
  50   53  #include <sys/types.h>
  51   54  #include <sys/kstat.h>
  52   55  #include <sys/time.h>
  53   56  #include <stdlib.h>
  54   57  #include <unistd.h>
  55   58  #include <sys/types.h>
  56   59  #include <sys/stat.h>
  57   60  #include <strings.h>
       61 +#include <note.h>
  58   62  
  59      -
  60   63  extern int __rpc_timeval_to_msec(struct timeval *);
  61   64  extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *);
  62   65  extern bool_t __rpc_gss_wrap(AUTH *, char *, uint_t, XDR *, bool_t (*)(),
  63   66                                                                  caddr_t);
  64   67  extern bool_t __rpc_gss_unwrap(AUTH *, XDR *, bool_t (*)(), caddr_t);
  65   68  
  66   69  
  67   70  static struct clnt_ops *clnt_dg_ops(void);
  68   71  static bool_t time_not_ok(struct timeval *);
  69   72  
↓ open down ↓ 605 lines elided ↑ open up ↑
 675  678                  return (rpc_callerr.re_status = RPC_CANTSEND);
 676  679          }
 677  680  
 678  681          rpc_fd_unlock(dgtbl, cu->cu_fd);
 679  682          return (rpc_callerr.re_status = RPC_SUCCESS);
 680  683  }
 681  684  
 682  685  static void
 683  686  clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp)
 684  687  {
 685      -/* LINTED pointer alignment */
 686      -        struct cu_data *cu = (struct cu_data *)cl->cl_private;
 687      -
      688 +        NOTE(ARGUNUSED(cl))
 688  689          *errp = rpc_callerr;
 689  690  }
 690  691  
 691  692  static bool_t
 692  693  clnt_dg_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)
 693  694  {
 694  695  /* LINTED pointer alignment */
 695  696          struct cu_data *cu = (struct cu_data *)cl->cl_private;
 696  697          XDR *xdrs = &(cu->cu_outxdrs);
 697  698          bool_t stat;
↓ open down ↓ 248 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX