X-Git-Url: http://git.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=ucimap.h;h=5804791729475771b015b695dbc43f8e5b75e9c7;hp=be813dc9b220440a43720857265b9b5bdd17bc00;hb=471dcf63d6ed4689cfd56f2648e6d1b48f46f14c;hpb=f506323c307a3675d50f50e43acc93ca6b00df10 diff --git a/ucimap.h b/ucimap.h index be813dc..5804791 100644 --- a/ucimap.h +++ b/ucimap.h @@ -93,7 +93,6 @@ #endif /* __GNUC__ */ #define UCIMAP_OPTION(_type, _field) \ - .type = UCIMAP_CUSTOM, \ .name = #_field, \ .offset = offsetof(_type, _field), \ .detected_type = __optmap_gen_type(_type, _field), \ @@ -135,11 +134,11 @@ enum ucimap_type { UCIMAP_TYPE = 0xf0, /* type mask */ /* subtypes */ - UCIMAP_STRING = 0x0, - UCIMAP_BOOL = 0x1, - UCIMAP_INT = 0x2, - UCIMAP_SECTION = 0x3, - UCIMAP_CUSTOM = 0x4, + UCIMAP_CUSTOM = 0x0, + UCIMAP_STRING = 0x1, + UCIMAP_BOOL = 0x2, + UCIMAP_INT = 0x3, + UCIMAP_SECTION = 0x4, UCIMAP_SUBTYPE = 0xf, /* subtype mask */ /* automatically create lists from