diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/libfru/libfruraw/raw_access.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/src/lib/libfru/libfruraw/raw_access.c b/usr/src/lib/libfru/libfruraw/raw_access.c index 6649fee8a6..1962f96dda 100644 --- a/usr/src/lib/libfru/libfruraw/raw_access.c +++ b/usr/src/lib/libfru/libfruraw/raw_access.c @@ -433,9 +433,9 @@ get_container_info(const char *def_file, const char *cont_desc_str, token = tokenizer(buf, "#", &field, &matched); /* find the names */ token = tokenizer(buf, ":", &field, &matched); - if (token != 0x00) { + if (token != NULL) { token = tokenizer(token, "|", &item, &matched); - while (token != 0x00) { + while (token != NULL) { if (strcmp(token, cont_desc_str) == 0) { foundIt = 1; goto found; @@ -443,7 +443,7 @@ get_container_info(const char *def_file, const char *cont_desc_str, token = tokenizer(item, "|", &item, &matched); } /* check the last remaining item */ - if ((item != 0x00) && + if ((item != NULL) && (strcmp(item, cont_desc_str) == 0)) { foundIt = 1; goto found; @@ -454,16 +454,16 @@ get_container_info(const char *def_file, const char *cont_desc_str, found : if (foundIt == 1) { token = tokenizer(field, ":", &field, &matched); - if (token == 0x00) { + if (token == NULL) { (void) fclose(file); return (-1); } cont_info->header_ver = (headerrev_t)atoi(token); token = tokenizer(field, ":\n", &field, &matched); - while (token != 0x00) { + while (token != NULL) { token = tokenizer(token, ",", &item, &matched); - if (token == 0x00) { + if (token == NULL) { (void) fclose(file); return (-1); } @@ -481,14 +481,14 @@ found : } token = tokenizer(item, ",", &item, &matched); - if (token == 0x00) { + if (token == NULL) { (void) fclose(file); return (-1); } cont_info->section_info[cont_info-> num_sections].address = atoi(token); - if (item == '\0') { + if (item == NULL) { (void) fclose(file); return (-1); } |