1
0
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:
Zdenek Kabelac 2012-01-25 21:42:09 +00:00
parent 5f3191097d
commit d85050930b

View File

@ -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;
}