Coding style and const fixes to last PR

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-10-24 08:28:34 +02:00
parent cddd8d8de0
commit fbb1f8800a
4 changed files with 19 additions and 24 deletions

View File

@@ -398,17 +398,22 @@ char *rl_complete(char *token, int *match)
}
static rl_check_secret_func_t *el_check_secret_func = NULL;
/* For compatibility with the Heimdal project. */
/* Added for the BitShares Core project. */
rl_check_secret_func_t *rl_set_check_secret_func(rl_check_secret_func_t *func)
{
rl_check_secret_func_t *old = el_check_secret_func;
el_check_secret_func = func;
return old;
}
int rl_check_secret(char *source)
int rl_check_secret(const char *line)
{
if (el_check_secret_func)
return el_check_secret_func(source);
return el_check_secret_func(line);
return 0;
}