11292 allocate: NULL pointer errors

Review Request #2038 - Created July 1, 2019 and submitted

Information
Toomas Soome
illumos-gate
11292
b0dfff4...
Reviewers
general
mkdevalloc.c: In function 'dotape':
mkdevalloc.c:322:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c: In function 'doaudio':
mkdevalloc.c:523:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c: In function 'docd':
mkdevalloc.c:906:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c:957:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~
mkdevalloc.c: In function 'dormdisk':
mkdevalloc.c:1114:36: error: comparison between pointer and integer [-Werror]
   if (strncmp(dep->d_name, ".", 1) == NULL)
                                    ^~

allocate3.c: In function 'mk_revoke':
allocate3.c:815:39: error: comparison between pointer and integer [-Werror]
     if (strcmp(info.pr_fname, "vold") == NULL) {
                                       ^~
allocate3.c:821:9: error: comparison between pointer and integer [-Werror]
         == NULL) {
         ^~
cc1: all warnings being treated as errors

  
Andrew Stormont
Peter Tribble
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...