mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Add breaks for cases
This commit is contained in:
parent
5f3191097d
commit
d85050930b
@ -230,9 +230,9 @@ static int compare_value(struct dm_config_value *a, struct dm_config_value *b)
|
||||
return -1;
|
||||
|
||||
switch (a->type) {
|
||||
case DM_CFG_STRING: r = strcmp(a->v.str, b->v.str);
|
||||
case DM_CFG_FLOAT: r = (a->v.f == b->v.f);
|
||||
case DM_CFG_INT: r = (a->v.i == b->v.i);
|
||||
case DM_CFG_STRING: r = strcmp(a->v.str, b->v.str); break;
|
||||
case DM_CFG_FLOAT: r = (a->v.f == b->v.f); break;
|
||||
case DM_CFG_INT: r = (a->v.i == b->v.i); break;
|
||||
case DM_CFG_EMPTY_ARRAY: return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user