X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=ucimap.h;h=adb7004e5337ff7ef00c27d964fc77f26d089df6;hb=75888e2645fc300311972b7c4430b0b817f822b9;hp=94095009aed5066f8c4f40a331555e8c277fc35d;hpb=1afdbf8f22ab7f8c9cf4d52d897e3b0de1e099e3;p=uci.git diff --git a/ucimap.h b/ucimap.h index 9409500..adb7004 100644 --- a/ucimap.h +++ b/ucimap.h @@ -32,13 +32,9 @@ #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;