11439 tnf: NULL pointer errors

Review Request #2157 — Created July 11, 2019 and submitted

tsoome
illumos-gate
11439
cfb7ab5...
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


  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
citrus
  1. 
      
  2. usr/src/cmd/tnf/prex/spec.c (Diff revision 1)
     
     
  3. usr/src/cmd/tnf/tnfxtract/tnfxtract.c (Diff revision 1)
     
     

    (uintptr_t)NULL

  4. 
      
tsoome
citrus
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...