]> err.no Git - yubikey-personalization/commitdiff
Amend last commit.
authorFredrik Thulin <fredrik@yubico.com>
Sat, 25 Dec 2010 17:00:23 +0000 (18:00 +0100)
committerFredrik Thulin <fredrik@yubico.com>
Sat, 25 Dec 2010 17:00:23 +0000 (18:00 +0100)
Missing some {}.

ykpersonalize.c

index c46774d66a1b243a5169a9c62a2a0c50027068dd..1801f12a2fa08675d95de0f445441660f4d9a6ed 100644 (file)
@@ -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)