11293 cfgadm: NULL pointer errors

Review Request #2039 - Created July 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11293
dc2c146...
Reviewers
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 cfgadm.c:34:
cfgadm.c: In function 'main':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'cfga_cmd_t {aka enum <anonymous>}' using type 'void *'
 #define NULL ((void *)0)
              ^
cfgadm.c:204:22: note: in expansion of macro 'NULL'
  cfga_cmd_t sc_opt = NULL;
                      ^~~~
*** Error code 1
dmake: Fatal error: Command failed for target `cfgadm'

  
Andrew Stormont
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...