mirror of
https://github.com/json-c/json-c.git
synced 2026-04-09 15:29:07 +08:00
Slight style tweaks to the bsearch changest.
This commit is contained in:
@@ -899,12 +899,10 @@ struct json_object* json_object_array_bsearch(
|
|||||||
result = (struct json_object **)array_list_bsearch(
|
result = (struct json_object **)array_list_bsearch(
|
||||||
(const void **)&key, jso->o.c_array, sort_fn);
|
(const void **)&key, jso->o.c_array, sort_fn);
|
||||||
|
|
||||||
if ( result == NULL ) {
|
if (!result)
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
|
||||||
return *result;
|
return *result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int json_object_array_length(struct json_object *jso)
|
int json_object_array_length(struct json_object *jso)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user