mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
Make json_segments_count fn return unsigned value.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user