11311 devctl: NULL pointer errors

Review Request #2052 — Created July 4, 2019 and submitted

tsoome
illumos-gate
11311
d6f2044...
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdio_iso.h:53:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/stdio.h:82,
                 from devctl.c:87:
devctl.c: In function 'run_list_ctlrs':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'di_walk_minor' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
devctl.c:551:45: note: in expansion of macro 'NULL'
  (void) di_walk_minor(dinode, DDI_NT_NEXUS, NULL, 0, &nexif);
                                             ^~~~
In file included from devctl.c:96:0:
/code/illumos-gate/proto/root_i386/usr/include/libdevinfo.h:214:13: note: expected 'uint_t {aka unsigned int}' but argument is of type 'void *'
 extern int  di_walk_minor(di_node_t root, const char *minortype,
             ^~~~~~~~~~~~~
cc1: all warnings being treated as errors


yuri.pankov
  1. Ship It!
  2. 
      
wiedi
  1. Ship It!
  2. 
      
ptribble
  1. Ship It!
  2. 
      
gdamore
  1. Ship It!
  2. 
      
andy_js
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...