10749 rpcmod: NULL pointer errors

Review Request #1715 - Created April 12, 2019 and submitted

Information
Toomas Soome
illumos-gate
10749
0569c77...
Reviewers
general
../../common/rpc/rpc_subr.c: In function 'loopb_u2t':
../../common/rpc/rpc_subr.c:375:16: error: comparison between pointer and integer [-Werror]
  while (*univp != NULL) {
                ^~
../../common/rpc/rpc_subr.c: In function 'rpcbind_getaddr':
../../common/rpc/rpc_subr.c:600:26: error: comparison between pointer and integer [-Werror]
    if (ua == NULL || *ua == NULL) {
                          ^~

../../common/rpc/clnt_clts.c: In function 'endpnt_reap_dispatch':
../../common/rpc/clnt_clts.c:1787:18: error: comparison between pointer and integer [-Werror]
      TQ_NOSLEEP) == NULL)
                  ^~

../../common/rpc/svc_rdma.c: In function 'svc_rdma_krecv':
../../common/rpc/svc_rdma.c:532:25: error: comparison between pointer and integer [-Werror]
   if (cllong->u.c_daddr == NULL) {
                         ^~

../../common/rpc/rdma_subr.c: In function 'clist_deregister':
../../common/rpc/rdma_subr.c:315:22: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     c->c_ssynchandle = NULL;
                      ^
../../common/rpc/rdma_subr.c:326:22: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     c->c_dsynchandle = NULL;
                      ^
cc1: all warnings being treated as errors

  
Marcel Telka
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...