11114 libsecdb: NULL pointer errors

Review Request #1899 - Created June 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11114
20c0bc8...
Reviewers
general
../common/secdb.c: In function '_argv_to_csl':
../common/secdb.c:342:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   newstr[len-1] = NULL;
                 ^
../common/chkauthattr.c: In function '_enum_common_p':
../common/chkauthattr.c:102:58: error: comparison between pointer and integer [-Werror]
  if (*pcnt > 0 && strcmp(profs[*pcnt - 1], PROFILE_STOP) == NULL)
                                                          ^~
../common/chkauthattr.c: In function '_auth_match_noun':
../common/chkauthattr.c:336:39: error: comparison between pointer and integer [-Werror]
    if (strncmp(grant + 1, "grant", 5) != NULL)
                                       ^~
cc1: all warnings being treated as errors

  
Peter Tribble
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...