X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fhex-xcode.c;h=bc2df713b2a3bec99ff49ad03f86e0c437ac7e23;hp=65d49564a3e1369f546d8b55102c5affbdcb9c29;hb=4a6721970a42a9f86149fb5d395d1001fed2d305;hpb=d57da17fcd30a5cbe191ccd42906e489dd2bd6a3 diff --git a/test/hex-xcode.c b/test/hex-xcode.c index 65d49564..bc2df713 100644 --- a/test/hex-xcode.c +++ b/test/hex-xcode.c @@ -44,17 +44,17 @@ int main (int argc, char **argv) { - enum direction dir = DECODE; + int dir = DECODE; int omit_newline = FALSE; notmuch_opt_desc_t options[] = { - { NOTMUCH_OPT_KEYWORD, &dir, "direction", 'd', + { .opt_keyword = &dir, .name = "direction", .keywords = (notmuch_keyword_t []){ { "encode", ENCODE }, { "decode", DECODE }, { 0, 0 } } }, - { NOTMUCH_OPT_BOOLEAN, &omit_newline, "omit-newline", 'n', 0 }, - { NOTMUCH_OPT_BOOLEAN, &inplace, "in-place", 'i', 0 }, - { 0, 0, 0, 0, 0 } + { .opt_bool = &omit_newline, .name = "omit-newline" }, + { .opt_bool = &inplace, .name = "in-place" }, + { } }; int opt_index = parse_arguments (argc, argv, options, 1);