11172 smbsrv: NULL pointer errors

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

tsoome
illumos-gate
11172
ca18046...
general
../common/smbns_dyndns.c: In function 'dyndns_search_entry':
../common/smbns_dyndns.c:1698:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../common/smbns_dyndns.c:1732:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^

../common/smb_lgrp.c: In function 'smb_lgrp_gtbl_exists':
../common/smb_lgrp.c:1407:10: error: incompatible types when returning type 'void *' but 'boolean_t {aka enum <anonymous>}' was expected
   return (NULL);
          ^
../common/smb_lgrp.c: In function 'smb_lgrp_pgrp_valid_gname':
../common/smb_lgrp.c:2531:19: error: comparison between pointer and integer [-Werror]
  for (c = *ptr; c != NULL; ptr++, c = *ptr) {
                   ^~
cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...