11346 hal: NULL pointer errors

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

Information
Toomas Soome
illumos-gate
11346
c041579...
Reviewers
general
probe-storage.c: In function 'check_floppy':
probe-storage.c:271:35: error: comparison between pointer and integer [-Werror]
   *wprot = ((chg & FDGC_CURWPROT) != NULL);
                                   ^~
addon-cpufreq.c: In function 'edit_power_conf_file':
addon-cpufreq.c:192:27: error: comparison between pointer and integer [-Werror]
   if (pc_edit_type.cpu_th == NULL) {
                           ^~
../../utils/printer.c
../../utils/printer.c: In function 'strip_ws':
../../utils/printer.c:34:15: error: comparison between pointer and integer [-Werror]
   for (; ((*s != NULL) && (isspace(*s) != 0)); s++);
               ^~

common.c: In function 'network_device_name_to_udi':
common.c:51:21: error: comparison between pointer and integer [-Werror]
  for (i = 0; udi[i] != NULL; i++)
                     ^~

../../probing/network-printer/probe-snmp.c: In function 'hrDeviceDesc_to_info':
../../probing/network-printer/probe-snmp.c:42:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    *s++ = NULL;
         ^
cc1: all warnings being treated as errors

  
Garrett D'Amore
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...