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/cfgadm_plugins/pci/common/cfga.c
          +++ new/usr/src/lib/cfgadm_plugins/pci/common/cfga.c
↓ open down ↓ 1075 lines elided ↑ open up ↑
1076 1076                                  else if (strcmp(buf, led_strs[ATTN]) == 0)
1077 1077                                          led_info.led = HPC_ATTN_LED;
1078 1078                                  else if (strcmp(buf, led_strs[ACTIVE]) == 0)
1079 1079                                          led_info.led = HPC_ACTIVE_LED;
1080 1080                                  else return (CFGA_INVAL);
1081 1081  
1082 1082                                  len = strlen(func_strs[MODE]);
1083 1083                                  if ((strncmp(str, func_strs[MODE], len) == 0) &&
1084 1084                                      (*(str+(len)) == '=')) {
1085 1085                                      for (str = (str+(++len)), i = 0;
1086      -                                        *str != NULL; i++, str++) {
     1086 +                                        *str != '\0'; i++, str++) {
1087 1087                                                  buf[i] = *str;
1088 1088  
1089 1089                                      }
1090 1090                                  }
1091 1091                                  buf[i] = '\0';
1092 1092                                  DBG(2, ("buf_mode= %s\n", buf));
1093 1093  
1094 1094                                  /* ON = 1, OFF = 0 */
1095 1095                                  if (strcmp(buf, mode_strs[ON]) == 0)
1096 1096                                          led_info.state = HPC_LED_ON;
↓ open down ↓ 177 lines elided ↑ open up ↑
1274 1274  static int
1275 1275  find_physical_slot_names(const char *devcomp, struct searcharg *slotarg)
1276 1276  {
1277 1277          di_node_t root_node;
1278 1278  
1279 1279          DBG(1, ("find_physical_slot_names\n"));
1280 1280  
1281 1281          if ((root_node = di_init("/", DINFOCPYALL|DINFOPATH))
1282 1282                  == DI_NODE_NIL) {
1283 1283                  DBG(1, ("di_init() failed\n"));
1284      -                return (NULL);
     1284 +                return (0);
1285 1285          }
1286 1286  
1287 1287          slotarg->devpath = (char *)devcomp;
1288 1288  
1289 1289          if ((slotarg->promp = di_prom_init()) == DI_PROM_HANDLE_NIL) {
1290 1290                  DBG(1, ("di_prom_init() failed\n"));
1291 1291                  di_fini(root_node);
1292      -                return (NULL);
     1292 +                return (0);
1293 1293          }
1294 1294  
1295 1295          (void) di_walk_minor(root_node, "ddi_ctl:attachment_point:pci",
1296 1296                  0, (void *)slotarg, find_slotname);
1297 1297  
1298 1298          di_prom_fini(slotarg->promp);
1299 1299          di_fini(root_node);
1300 1300          if (slotarg->slotnames[0] != NULL)
1301 1301                  return (0);
1302 1302          else
↓ open down ↓ 564 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX