11155 brand: NULL pointer errors

Review Request #1940 — Created June 1, 2019 and submitted

tsoome
illumos-gate
11155
e8d8819...
general
../common/brand_util.c: In function 'brand_post_init':
../common/brand_util.c:369:12: error: comparison between pointer and integer [-Werror]
  while (*p != NULL)
            ^~
../common/brand_util.c:404:22: error: comparison between pointer and integer [-Werror]
     if (sed.sed_base == NULL) {
                      ^~
../common/brand_util.c:406:21: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      ap->a_un.a_val = NULL;
                     ^
../common/brand_util.c:435:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     ap->a_un.a_val = NULL;
                    ^
../common/brand_util.c:439:24: error: comparison between pointer and integer [-Werror]
     if (sed.sed_lddata == NULL) {
                        ^~
../common/brand_util.c:441:21: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      ap->a_un.a_val = NULL;
                     ^
cc1: all warnings being treated as errors


andy_js
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...