From: Fredrik Thulin Date: Sat, 25 Dec 2010 17:00:23 +0000 (+0100) Subject: Amend last commit. X-Git-Tag: v1.4.0~25 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54237bc068146fa07805ab103b33f47d63bfb83b;p=yubikey-personalization Amend last commit. Missing some {}. --- diff --git a/ykpersonalize.c b/ykpersonalize.c index c46774d..1801f12 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -342,13 +342,15 @@ int main(int argc, char **argv) } #define TKTFLAG(o, f) \ else if (strcmp(optarg, o) == 0) { \ - if (!ykp_set_tktflag_##f(cfg, true)) \ + if (!ykp_set_tktflag_##f(cfg, true)) { \ exit_code = 1; \ goto err; \ + } \ } else if (strcmp(optarg, "-" o) == 0) { \ - if (! ykp_set_tktflag_##f(cfg, false)) \ + if (! ykp_set_tktflag_##f(cfg, false)) { \ exit_code = 1; \ goto err; \ + } \ } TKTFLAG("tab-first", TAB_FIRST) TKTFLAG("append-tab1", APPEND_TAB1) @@ -362,13 +364,15 @@ int main(int argc, char **argv) #define CFGFLAG(o, f) \ else if (strcmp(optarg, o) == 0) { \ - if (! ykp_set_cfgflag_##f(cfg, true)) \ + if (! ykp_set_cfgflag_##f(cfg, true)) { \ exit_code = 1; \ goto err; \ + } \ } else if (strcmp(optarg, "-" o) == 0) { \ - if (! ykp_set_cfgflag_##f(cfg, false)) \ + if (! ykp_set_cfgflag_##f(cfg, false)) { \ exit_code = 1; \ goto err; \ + } \ } CFGFLAG("send-ref", SEND_REF) CFGFLAG("ticket-first", TICKET_FIRST)