11402 ptools: NULL pointer errors

Review Request #2124 - Created July 11, 2019 and submitted

Information
Toomas Soome
illumos-gate
11402
56efebf...
Reviewers
general
../psig.c: In function 'uberdata_addr':
../psig.c:118:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^

../pargs.c: In function 'print_args':
../pargs.c:1173:25: error: comparison between pointer and integer [-Werror]
   if (datap->pd_argv[i] == NULL) {
                         ^~
../pargs.c: In function 'print_cmdline':
../pargs.c:1219:51: error: comparison between pointer and integer [-Werror]
   if (datap->pd_argv == NULL || datap->pd_argv[i] == NULL ||
                                                   ^~
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
Andy Fiddaman
Toomas Soome
Andy Fiddaman
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...