11341 grpck: NULL pointer errors

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

Information
Toomas Soome
illumos-gate
11341
d84db07...
Reviewers
general
grpck.c: In function 'main':
grpck.c:230:22: error: comparison between pointer and integer [-Werror]
   for (i = 0; buf[i] != NULL; i++) {
                      ^~
grpck.c:289:10: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    *cptr = NULL;
          ^
grpck.c:290:14: error: comparison between pointer and integer [-Werror]
    if (*nptr == NULL) {
              ^~
cc1: all warnings being treated as errors

  
Andrew Stormont
Sebastian Wiedenroth
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...