11452 zonestat: NULL pointer errors

Review Request #2170 - Created July 11, 2019 and submitted

Information
Toomas Soome
illumos-gate
11452
58e0f81...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/alloca.h:32,
                 from zonestatd.c:25:
zonestatd.c: In function 'zsd_stat_server':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'door_return' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
zonestatd.c:4515:38: note: in expansion of macro 'NULL'
  (void) door_return(rvalp, rvals, 0, NULL);
                                      ^~~~
In file included from zonestatd.c:29:0:
/code/illumos-gate/proto/root_i386/usr/include/door.h:51:5: note: expected 'uint_t {aka unsigned int}' but argument is of type 'void *'
 int door_return(char *, size_t, door_desc_t *, uint_t);
     ^~~~~~~~~~~
cc1: all warnings being treated as errors

  
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...