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/lib/libumem/common/misc.c
          +++ new/usr/src/lib/libumem/common/misc.c
↓ open down ↓ 236 lines elided ↑ open up ↑
 237  237  
 238  238  /*
 239  239   * print_sym tries to print out the symbol and offset of a pointer
 240  240   */
 241  241  int
 242  242  print_sym(void *pointer)
 243  243  {
 244  244          int result;
 245  245          Dl_info sym_info;
 246  246  
 247      -        uintptr_t end = NULL;
      247 +        uintptr_t end = (uintptr_t)NULL;
 248  248  
 249  249          Sym *ext_info = NULL;
 250  250  
 251  251          result = dladdr1(pointer, &sym_info, (void **)&ext_info,
 252  252              RTLD_DL_SYMENT);
 253  253  
 254  254          if (result != 0) {
 255  255                  const char *endpath;
 256  256  
 257  257                  end = (uintptr_t)sym_info.dli_saddr + ext_info->st_size;
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX