11148 libbsm: NULL pointer errors

Review Request #1933 — Created June 1, 2019 and submitted

tsoome
illumos-gate
11148
d0e40b2...
general
../common/audit_allocate.c: In function 'audit_allocate_record':
../common/audit_allocate.c:123:3: error: comparison between pointer and integer [-Werror]
   == NULL)
   ^~
../common/getdaent.c: In function 'getdadmline':
../common/getdaent.c:136:7: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *cp = NULL;
       ^
../common/getdaent.c:151:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     *ccp = NULL;
          ^
../common/getdaent.c:159:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    *ccp = NULL;
         ^

../common/getdment.c: In function 'getdmapfield':
../common/getdment.c:683:11: error: comparison between pointer and integer [-Werror]
  if (*ptr == NULL)
           ^~
../common/getdment.c: In function 'getdmapdfield':
../common/getdment.c:703:11: error: comparison between pointer and integer [-Werror]
  if (*ptr == NULL)
           ^~

../common/devalloc.c: In function 'da_remove_list':
../common/devalloc.c:1915:11: error: comparison between pointer and integer [-Werror]
  if (type != NULL)
           ^~
../common/devalloc.c:1952:12: error: comparison between pointer and integer [-Werror]
  if ((type != NULL) && (link == NULL)) {
            ^~
cc1: all warnings being treated as errors


jlevon
  1. Ship It!
  2. 
      
wiedi
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...