Fix compiler warnings.
This commit is contained in:
@@ -194,6 +194,7 @@ bsearch_common(const char *buf, size_t sz, const char *key,
|
|||||||
/* Got a line; check it */
|
/* Got a line; check it */
|
||||||
|
|
||||||
/* Search for and split on unquoted whitespace */
|
/* Search for and split on unquoted whitespace */
|
||||||
|
val_start = 0;
|
||||||
for (key_start = i, key_len = 0, val_len = 0, k = i; k < rmax; k++) {
|
for (key_start = i, key_len = 0, val_len = 0, k = i; k < rmax; k++) {
|
||||||
if (buf[k] == '\\') {
|
if (buf[k] == '\\') {
|
||||||
k++;
|
k++;
|
||||||
@@ -204,10 +205,10 @@ bsearch_common(const char *buf, size_t sz, const char *key,
|
|||||||
key_len = k - i;
|
key_len = k - i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!isspace(buf[k]))
|
if (!isspace((unsigned char)buf[k]))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
while (k < rmax && isspace(buf[k])) {
|
while (k < rmax && isspace((unsigned char)buf[k])) {
|
||||||
key_len = k - i;
|
key_len = k - i;
|
||||||
k++;
|
k++;
|
||||||
}
|
}
|
||||||
|
@@ -788,7 +788,7 @@ heim_path_vcreate(heim_object_t ptr, size_t size, heim_object_t leaf,
|
|||||||
heim_object_t node = ptr;
|
heim_object_t node = ptr;
|
||||||
heim_object_t next_node = NULL;
|
heim_object_t next_node = NULL;
|
||||||
heim_tid_t node_type;
|
heim_tid_t node_type;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
heim_abort("heim_path_vcreate() does not create root nodes");
|
heim_abort("heim_path_vcreate() does not create root nodes");
|
||||||
|
Reference in New Issue
Block a user