From: Fredrik Thulin Date: Mon, 31 Jan 2011 12:55:31 +0000 (+0100) Subject: Minor cleanups. X-Git-Tag: v1.5.0~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c022ac5f18a078d5b52964d1b03cf8f3d2d002b1;p=yubikey-personalization Minor cleanups. --- diff --git a/ykpersonalize.c b/ykpersonalize.c index 5775128..bfa3170 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -212,8 +212,7 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, bool mode_chosen = false; bool option_seen = false; - struct config_st *ycfg; - ycfg = (struct config_st *) ykp_core_config(cfg); + struct config_st *ycfg = (struct config_st *) ykp_core_config(cfg); while((c = getopt(argc, argv, optstring)) != -1) { if (c == 'o') { @@ -447,7 +446,7 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, } if (*aesviahash) { - int long_key_valid = false; + bool long_key_valid = false; int res = 0; /* for OATH-HOTP, 160 bits key is also valid */