diff cli-auth.c @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 6959c88c8f13
children 2d450c1056e3
line wrap: on
line diff
--- a/cli-auth.c	Sat Aug 12 20:51:58 2017 +0200
+++ b/cli-auth.c	Sat Aug 19 17:16:13 2017 +0200
@@ -331,7 +331,7 @@
 #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;