10310 auditconfig: NULL pointer errors

Review Request #1403 - Created Jan. 27, 2019 and submitted

Information
Toomas Soome
illumos-gate
10310
7ee40fe...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/locale_iso.h:50:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/locale.h:41,
                 from auditconfig.c:29:
auditconfig.c: In function 'print_mask':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'getauditflagschar' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
auditconfig.c:2778:38: note: in expansion of macro 'NULL'
  if (getauditflagschar(auflags, pmp, NULL) < 0)
                                      ^~~~
In file included from auditconfig.c:53:0:
/code/illumos-gate/proto/root_i386/usr/include/bsm/libbsm.h:179:12: note: expected 'int' but argument is of type 'void *'
 extern int getauditflagschar(char *, au_mask_t *, int);
            ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 8
  • 0
  • 8
Description From Last Updated
Robert Mustacchi
Andrew Stormont
Gergő Mihály Doma
Toomas Soome
Andrew Stormont
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...