diff --git a/cmdgen.c b/cmdgen.c index dbac992c..c3720b57 100644 --- a/cmdgen.c +++ b/cmdgen.c @@ -906,7 +906,7 @@ int main(int argc, char **argv) * we have just generated a key. */ if (!new_passphrase && (change_passphrase || keytype != NOKEYGEN)) { - prompts_t *p = new_prompts(NULL); + prompts_t *p = new_prompts(); int ret; p->to_server = false; diff --git a/putty.h b/putty.h index 0c4816cb..52cd90df 100644 --- a/putty.h +++ b/putty.h @@ -667,7 +667,7 @@ typedef struct { void *data; /* slot for housekeeping data, managed by * seat_get_userpass_input(); initially NULL */ } prompts_t; -prompts_t *new_prompts(); +prompts_t *new_prompts(void); void add_prompt(prompts_t *p, char *promptstr, bool echo); void prompt_set_result(prompt_t *pr, const char *newstr); char *prompt_get_result(prompt_t *pr); diff --git a/ssh1login.c b/ssh1login.c index c02b8d02..145ac640 100644 --- a/ssh1login.c +++ b/ssh1login.c @@ -648,7 +648,7 @@ static void ssh1_login_process_queue(PacketProtocolLayer *ppl) ppl_printf("No passphrase required.\r\n"); passphrase = NULL; } else { - s->cur_prompt = new_prompts(s->ppl.seat); + s->cur_prompt = new_prompts(); s->cur_prompt->to_server = false; s->cur_prompt->from_server = false; s->cur_prompt->name = dupstr("SSH key passphrase"); @@ -786,7 +786,7 @@ static void ssh1_login_process_queue(PacketProtocolLayer *ppl) /* * Otherwise, try various forms of password-like authentication. */ - s->cur_prompt = new_prompts(s->ppl.seat); + s->cur_prompt = new_prompts(); if (conf_get_bool(s->conf, CONF_try_tis_auth) && (s->supported_auths_mask & (1 << SSH1_AUTH_TIS)) &&