]> pilppa.org Git - uci.git/blobdiff - ucimap.h
ucimap: cleanup OPTMAP_OPTION macro, rename to UCIMAP_OPTION
[uci.git] / ucimap.h
index 94095009aed5066f8c4f40a331555e8c277fc35d..adb7004e5337ff7ef00c27d964fc77f26d089df6 100644 (file)
--- a/ucimap.h
+++ b/ucimap.h
 #define TEST_BIT(_name, _bit) \
        (_name[(_bit) / 8] & (1 << ((_bit) % 8)))
 
-#define OPTMAP_OPTION(_maptype, _type, _field, ...) \
-       { \
-               .type = _maptype, \
-               .name = #_field, \
-               .offset = offsetof(_type, _field), \
-               __VA_ARGS__  \
-       }
+#define UCIMAP_OPTION(_type, _field) \
+       .name = #_field, \
+       .offset = offsetof(_type, _field)
 
 struct uci_sectmap;
 struct uci_optmap;