10767 ipc: NULL pointer errors

Review Request #1732 - Created April 13, 2019 and submitted

Information
Toomas Soome
illumos-gate
10767
c935f07...
Reviewers
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/os/ipc.c:407:
../../common/os/ipc.c: In function 'ipc_keylookup':
../../common/sys/null.h:32:14: error: passing argument 1 of 'audit_ipcget' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/os/ipc.c:929:18: note: in expansion of macro 'NULL'
     audit_ipcget(NULL, (void *)perm);
                  ^~~~
In file included from ../../common/os/ipc.c:422:0:
../../common/c2/audit.h:589:6: note: expected 'int' but argument is of type 'void *'
 void audit_ipcget(int, void *);
      ^~~~~~~~~~~~
cc1: all warnings being treated as errors

  
Andrew Stormont
Sebastian Wiedenroth
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...