10440 ipd: NULL pointer errors

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

Information
Toomas Soome
illumos-gate
10440
0733cd2...
Reviewers
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

  
Aurélien Larcher
Andrew Stormont
Andy Fiddaman
Gergő Mihály Doma
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...