Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected
*** 1081,1091 ****
len = strlen(func_strs[MODE]);
if ((strncmp(str, func_strs[MODE], len) == 0) &&
(*(str+(len)) == '=')) {
for (str = (str+(++len)), i = 0;
! *str != NULL; i++, str++) {
buf[i] = *str;
}
}
buf[i] = '\0';
--- 1081,1091 ----
len = strlen(func_strs[MODE]);
if ((strncmp(str, func_strs[MODE], len) == 0) &&
(*(str+(len)) == '=')) {
for (str = (str+(++len)), i = 0;
! *str != '\0'; i++, str++) {
buf[i] = *str;
}
}
buf[i] = '\0';
*** 1279,1297 ****
DBG(1, ("find_physical_slot_names\n"));
if ((root_node = di_init("/", DINFOCPYALL|DINFOPATH))
== DI_NODE_NIL) {
DBG(1, ("di_init() failed\n"));
! return (NULL);
}
slotarg->devpath = (char *)devcomp;
if ((slotarg->promp = di_prom_init()) == DI_PROM_HANDLE_NIL) {
DBG(1, ("di_prom_init() failed\n"));
di_fini(root_node);
! return (NULL);
}
(void) di_walk_minor(root_node, "ddi_ctl:attachment_point:pci",
0, (void *)slotarg, find_slotname);
--- 1279,1297 ----
DBG(1, ("find_physical_slot_names\n"));
if ((root_node = di_init("/", DINFOCPYALL|DINFOPATH))
== DI_NODE_NIL) {
DBG(1, ("di_init() failed\n"));
! return (0);
}
slotarg->devpath = (char *)devcomp;
if ((slotarg->promp = di_prom_init()) == DI_PROM_HANDLE_NIL) {
DBG(1, ("di_prom_init() failed\n"));
di_fini(root_node);
! return (0);
}
(void) di_walk_minor(root_node, "ddi_ctl:attachment_point:pci",
0, (void *)slotarg, find_slotname);