10440 ipd: NULL pointer errors

Review Request #1509 — Created Feb. 22, 2019 and submitted

tsoome
illumos-gate
10440
0733cd2...
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/sys/t_lock.h:38,
                 from ../../common/sys/file.h:35,
                 from ../../common/inet/ipd/ipd.c:152:
../../common/inet/ipd/ipd.c: In function 'ipd_ioctl_list':
../../common/sys/null.h:32:14: error: passing argument 4 of 'ddi_copyout' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/inet/ipd/ipd.c:883:41: note: in expansion of macro 'NULL'
       nzones * sizeof (ipd_ioc_info_t), NULL) != 0)
                                         ^~~~
In file included from ../../common/inet/ipd/ipd.c:157:0:
../../common/sys/sunddi.h:1814:12: note: expected 'int' but argument is of type 'void *'
 extern int ddi_copyout(const void *, void *, size_t, int);
            ^~~~~~~~~~~
cc1: all warnings being treated as errors


alarcher
  1. Ship It!
  2. 
      
andy_js
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
domag02
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...