[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/daemons/lvmetad lvmetad-core.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac sourceware org	2012-01-25 21:42:10

Modified files:
	daemons/lvmetad: lvmetad-core.c 

Log message:
	Add breaks for cases

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/lvmetad/lvmetad-core.c.diff?cvsroot=lvm2&r1=1.30&r2=1.31

--- LVM2/daemons/lvmetad/lvmetad-core.c	2012/01/25 13:06:57	1.30
+++ LVM2/daemons/lvmetad/lvmetad-core.c	2012/01/25 21:42:09	1.31
@@ -230,9 +230,9 @@
 		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;
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]