Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/tnf/tnfxtract/tnfxtract.c
          +++ new/usr/src/cmd/tnf/tnfxtract/tnfxtract.c
↓ open down ↓ 120 lines elided ↑ open up ↑
 121  121                  exit(1);
 122  122          }
 123  123          if (kvm_read(kvm_p, kvm_syms[0].n_value, (char *) &dump_bufaddr,
 124  124              sizeof (dump_bufaddr)) != sizeof (dump_bufaddr) ||
 125  125              kvm_read(kvm_p, kvm_syms[1].n_value, (char *) &tnf_bufsize,
 126  126              sizeof (tnf_bufsize)) != sizeof (tnf_bufsize)) {
 127  127                  (void) fprintf(stderr, gettext(
 128  128                          "kvm_read error in %s\n"), dumpfile);
 129  129                  exit(1);
 130  130          }
 131      -        if (dump_bufaddr == NULL || tnf_bufsize == 0) {
      131 +        if (dump_bufaddr == (uintptr_t)NULL || tnf_bufsize == 0) {
 132  132                  (void) fprintf(stderr, gettext(
 133  133                          "No trace data available in the kernel.\n"));
 134  134                  exit(1);
 135  135          }
 136  136  }
 137  137  
 138  138  static void
 139  139  live_kernel_init()
 140  140  
 141  141  {
↓ open down ↓ 282 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX