Make json_segments_count fn return unsigned value.

This commit is contained in:
Ondrej Kozina
2019-07-31 10:21:39 +02:00
parent 0886bc7afd
commit b551bdb0ce
3 changed files with 6 additions and 14 deletions

View File

@@ -178,12 +178,12 @@ json_object *json_segments_get_segment(json_object *jobj_segments, int segment)
return jobj;
}
int json_segments_count(json_object *jobj_segments)
unsigned json_segments_count(json_object *jobj_segments)
{
int count = 0;
unsigned count = 0;
if (!jobj_segments)
return -EINVAL;
return 0;
json_object_object_foreach(jobj_segments, slot, val) {
UNUSED(slot);