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/lp/cmd/lpsched/fncs.c
          +++ new/usr/src/cmd/lp/cmd/lpsched/fncs.c
↓ open down ↓ 890 lines elided ↑ open up ↑
 891  891          if (req->title) {
 892  892                  char *r = req->title;
 893  893                  char *ptr = buf;
 894  894  
 895  895                  while ( *r && strncmp(r,"\\n",2)) {
 896  896                          *ptr++ = *r++;
 897  897                  }
 898  898          } else if (req->file_list)
 899  899                  strlcpy(buf, *req->file_list, sizeof (buf));
 900  900          
 901      -        if (*buf == NULL || !strncmp(buf, SPOOLDIR, sizeof(SPOOLDIR)-1))
      901 +        if (*buf == '\0' || !strncmp(buf, SPOOLDIR, sizeof(SPOOLDIR)-1))
 902  902                  strcpy(buf, "<File name not available>");
 903  903  
 904  904          if (strlen(buf) > (size_t) 24) {
 905  905                  char *r;
 906  906  
 907  907                  if (r = strrchr(buf, '/'))
 908  908                          r++;
 909  909                  else
 910  910                          r = buf;
 911  911          
↓ open down ↓ 83 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX