11412 pwck: NULL pointer errors

Review Request #2134 - Created July 11, 2019 and submitted

Information
Toomas Soome
illumos-gate
11412
33b33e4...
Reviewers
general
pwck.c: In function 'main':
pwck.c:128:22: error: comparison between pointer and integer [-Werror]
   for (i = 0; buf[i] != NULL; i++)
                      ^~
pwck.c:139:12: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   delim[7] = NULL;
            ^
pwck.c:194:17: error: comparison between pointer and integer [-Werror]
   if (logbuf[0] == NULL)
                 ^~
pwck.c:214:15: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     logbuf[j] = NULL;
               ^
cc1: all warnings being treated as errors

  
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...