11338 format: NULL pointer errors

Review Request #2074 - Created July 6, 2019 and submitted

Information
Toomas Soome
illumos-gate
11338
db83e74...
Reviewers
general
checkdev.c: In function 'checkdevinuse':
checkdev.c:356:24: error: comparison between pointer and integer [-Werror]
  for (i = 0; slices[i] != NULL; i++) {
                        ^~

ix_altsctr.c: In function 'init_altsctr':
ix_altsctr.c:274:33: error: comparison between pointer and integer [-Werror]
  if (ap->ap_tblp->alts_map_base == NULL) {
                                 ^~
ix_altsctr.c: In function 'gen_alts_ent':
ix_altsctr.c:499:33: error: comparison between pointer and integer [-Werror]
  if (ap->ap_tblp->alts_ent_base == NULL) {
                                 ^~
ix_altsctr.c: In function 'assign_altsctr':
ix_altsctr.c:530:19: error: comparison between pointer and integer [-Werror]
      if (alts_ind == NULL) {
                   ^~
ix_altsctr.c: In function 'altsmap_alloc':
ix_altsctr.c:634:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^

io.c: In function 'execute_shell':
io.c:2440:9: error: comparison between pointer and integer [-Werror]
  if (*s == NULL) {
         ^~
cc1: all warnings being treated as errors

  
Andrew Stormont
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...