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/bart/compare.c
          +++ new/usr/src/cmd/bart/compare.c
↓ open down ↓ 238 lines elided ↑ open up ↑
 239  239          get_token(line, &pos, line_len, type, TYPE_SIZE);
 240  240          get_token(line, &pos, line_len, size, MISC_SIZE);
 241  241          get_token(line, &pos, line_len, mode, MISC_SIZE);
 242  242          get_token(line, &pos, line_len, acl, ACL_SIZE);
 243  243          get_token(line, &pos, line_len, mtime, MISC_SIZE);
 244  244          get_token(line, &pos, line_len, uid, MISC_SIZE);
 245  245          get_token(line, &pos, line_len, gid, MISC_SIZE);
 246  246  
 247  247          /* Reset these fields... */
 248  248  
 249      -        *contents = NULL;
      249 +        *contents = '\0';
 250  250          *devnode = '\0';
 251  251          *dest = '\0';
 252  252  
 253  253          /* Handle filetypes which have a last field..... */
 254  254          if (type[0] == 'F')
 255  255                  get_token(line, &pos, line_len, contents, PATH_MAX);
 256  256          else if ((type[0] == 'B') || (type[0] == 'C'))
 257  257                  get_token(line, &pos, line_len, devnode, PATH_MAX);
 258  258          else if (type[0] == 'L')
 259  259                  get_token(line, &pos, line_len, dest, PATH_MAX);
↓ open down ↓ 395 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX