Pointer parameter could be declared as pointing to const

This commit is contained in:
Francois Perrad
2017-08-19 17:16:13 +02:00
parent 468656b4aa
commit 89e64c631e
45 changed files with 164 additions and 164 deletions

View File

@@ -331,7 +331,7 @@ int cli_auth_try() {
#if DROPBEAR_CLI_PASSWORD_AUTH || DROPBEAR_CLI_INTERACT_AUTH
/* A helper for getpass() that exits if the user cancels. The returned
* password is statically allocated by getpass() */
char* getpass_or_cancel(char* prompt)
char* getpass_or_cancel(const char* prompt)
{
char* password = NULL;