1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Remove unused params from cmdline_get_passwd_input.

NFC; I expect this to be a useful simplification for the same reasons
as the previous commit.
This commit is contained in:
Simon Tatham
2018-05-18 07:22:56 +01:00
parent 3692c239d7
commit a486318dad
9 changed files with 10 additions and 10 deletions

View File

@ -5937,7 +5937,7 @@ int from_backend_eof(void *frontend)
int get_userpass_input(prompts_t *p, const unsigned char *in, int inlen)
{
int ret;
ret = cmdline_get_passwd_input(p, in, inlen);
ret = cmdline_get_passwd_input(p);
if (ret == -1)
ret = term_get_userpass_input(term, p, in, inlen);
return ret;

View File

@ -134,7 +134,7 @@ int from_backend_eof(void *frontend_handle)
int get_userpass_input(prompts_t *p, const unsigned char *in, int inlen)
{
int ret;
ret = cmdline_get_passwd_input(p, in, inlen);
ret = cmdline_get_passwd_input(p);
if (ret == -1)
ret = console_get_userpass_input(p, in, inlen);
return ret;

View File

@ -18,7 +18,7 @@ char *get_ttymode(void *frontend, const char *mode) { return NULL; }
int get_userpass_input(prompts_t *p, const unsigned char *in, int inlen)
{
int ret;
ret = cmdline_get_passwd_input(p, in, inlen);
ret = cmdline_get_passwd_input(p);
if (ret == -1)
ret = console_get_userpass_input(p, in, inlen);
return ret;