11419 rmformat: NULL pointer errors

Review Request #2139 - Created July 11, 2019 and updated

Information
Toomas Soome
illumos-gate
11419
d288f5c...
Reviewers
general
rmf_slice.c: In function 'str2sector':
rmf_slice.c:761:33: error: comparison between pointer and integer [-Werror]
    if ((*s1 != 'B') || (*(++s1) != NULL)) {
                                 ^~
rmf_slice.c:773:6: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *s2 = NULL;
      ^
cc1: all warnings being treated as errors

  
Andy Fiddaman
Ship It!
Loading...