11439 tnf: NULL pointer errors

Review Request #2157 - Created July 11, 2019 and submitted - Latest diff uploaded

Information
Toomas Soome
illumos-gate
11439
cfb7ab5...
Reviewers
general
../tnfxtract.c: In function 'dumpfile_init':
../tnfxtract.c:131:19: error: comparison between pointer and integer [-Werror]
  if (dump_bufaddr == NULL || tnf_bufsize == 0) {
                   ^~

../spec.c: In function 'spec_match':
../spec.c:188:40: error: comparison between pointer and integer [-Werror]
   return ((step(str, spec_p->regexp_p) != NULL));
                                        ^~
../spec.c: In function 'spec_valtrav':
../spec.c:320:3: error: pointers are not permitted as case values
   case NULL:
   ^~~~
cc1: all warnings being treated as errors

  
Loading...