Skip to contentSkip to conversation

master - config: use int for type

PATCH Zdenek Kabelac 1 participant 1 message Nov 28, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fc9d4dd11f2331e056f0b56274877c8a4b4b1570
Commit:        fc9d4dd11f2331e056f0b56274877c8a4b4b1570
Parent:        79991aa7699587b40946d029787b38ae67405336
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 25 13:44:46 2013 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Nov 28 12:42:44 2013 +0100

config: use int for type

Since the type is used for 'or' operation of enumerated bit fields, it doesn't not have type cfg_def_type_t - use proper int type for bitmask.

---
 lib/config/config.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/config/config.h +1 -1
index f57757b..0769c40 100644
@@ -88,7 +88,7 @@ typedef struct cfg_def_item {
 	int id;				/* ID of this item */
 	int parent;			/* ID of parent item */
 	const char *name;		/* name of the item in configuration tree */
-	cfg_def_type_t type;		/* configuration item type */
+	int type;			/* configuration item type (bits of cfg_def_type_t) */
 	cfg_def_value_t default_value;	/* default value (only for settings) */
 	uint16_t flags;			/* configuration item definition flags */
 	uint16_t since_version;		/* version this item appeared in */