From fc9d4dd11f2331e056f0b56274877c8a4b4b1570 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Nov 2013 13:44:46 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/config.h b/lib/config/config.h index f57757b7e..0769c4080 100644 --- a/lib/config/config.h +++ b/lib/config/config.h @@ -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 */