diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-04 20:40:46 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-04 20:40:46 +0000 |
commit | cfb1ef47122283b97ab2e05437c47b6e60f7c54f (patch) | |
tree | 6f52bce69ee88362d0b801e94372ecc39c5091d2 /res/res_crypto.c | |
parent | dc76ba74df2442efe2e986ee50e13247a263ed81 (diff) |
convert most of the option_*'s to a single ast_flags structure. Also, fix some
formatting, remove some unnecessary casts, and other little code cleanups.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7331 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_crypto.c')
-rw-r--r-- | res/res_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c index 037ff8e79..3ada0d224 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -268,7 +268,7 @@ static struct ast_key *try_load_key (char *dir, char *fname, int ifd, int ofd, i ast_log(LOG_NOTICE, "Key '%s' needs passcode.\n", key->name); key->ktype |= KEY_NEEDS_PASSCODE; if (!notice) { - if (!option_initcrypto) + if (!ast_opt_init_keys) ast_log(LOG_NOTICE, "Add the '-i' flag to the asterisk command line if you want to automatically initialize passcodes at launch.\n"); notice++; } @@ -592,7 +592,7 @@ int reload(void) int load_module(void) { crypto_init(); - if (option_initcrypto) + if (ast_opt_init_keys) crypto_load(STDIN_FILENO, STDOUT_FILENO); else crypto_load(-1, -1); |