10713 fp: NULL pointer errors

Review Request #1679 - Created April 10, 2019 and submitted

Information
Toomas Soome
illumos-gate
10713
a44bf63...
Reviewers
general
../../common/io/fibre-channel/impl/fp.c: In function 'fp_unsol_cb':
../../common/io/fibre-channel/impl/fp.c:10905:56: error: pointer/integer type mismatch in conditional expression [-Werror]
  cb_arg = (rscn_count == FC_INVALID_RSCN_COUNT) ? NULL : rscn_count;
                                                        ^
../../common/io/fibre-channel/impl/fp.c:10905:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  cb_arg = (rscn_count == FC_INVALID_RSCN_COUNT) ? NULL : rscn_count;
         ^
cc1: all warnings being treated as errors

  
Robert Mustacchi
Andy Fiddaman
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...