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/shp/common/shp.c
          +++ new/usr/src/lib/cfgadm_plugins/shp/common/shp.c
↓ open down ↓ 945 lines elided ↑ open up ↑
 946  946                                  else if (strcmp(buf, led_strs[ATTN]) == 0)
 947  947                                          led = PCIEHPC_PROP_LED_ATTN;
 948  948                                  else if (strcmp(buf, led_strs[ACTIVE]) == 0)
 949  949                                          led = PCIEHPC_PROP_LED_ACTIVE;
 950  950                                  else return (CFGA_INVAL);
 951  951  
 952  952                                  len = strlen(func_strs[MODE]);
 953  953                                  if ((strncmp(str, func_strs[MODE], len) == 0) &&
 954  954                                      (*(str+(len)) == '=')) {
 955  955                                          for (str = (str+(++len)), i = 0;
 956      -                                            *str != NULL; i++, str++) {
      956 +                                            *str != '\0'; i++, str++) {
 957  957                                                  buf[i] = *str;
 958  958                                          }
 959  959                                  }
 960  960                                  buf[i] = '\0';
 961  961                                  DBG(2, ("buf_mode= %s\n", buf));
 962  962  
 963  963                                  /* ON = 1, OFF = 0 */
 964  964                                  if (strcmp(buf, mode_strs[ON]) == 0)
 965  965                                          mode = PCIEHPC_PROP_VALUE_ON;
 966  966                                  else if (strcmp(buf, mode_strs[OFF]) == 0)
↓ open down ↓ 738 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX