11423 sa: NULL pointer errors

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

Information
Toomas Soome
illumos-gate
11423
37bf7d9...
Reviewers
general
sar.c: In function 'prthdg':
sar.c:640:28: error: comparison between pointer and integer [-Werror]
  while ((ccc = fopt[jj++]) != NULL) {
                            ^~
sar.c: In function 'prtopt':
sar.c:1032:28: error: comparison between pointer and integer [-Werror]
  while ((ccc = fopt[jj++]) != NULL) {
                            ^~
sar.c: In function 'prtavg':
sar.c:1117:28: error: comparison between pointer and integer [-Werror]
  while ((ccc = fopt[jj++]) != NULL) {
                            ^~
cc1: all warnings being treated as errors

  
Andy Fiddaman
Ship It!
Loading...