Permalink
Browse files

example: Use const in auth_password from samplesshd.

  • Loading branch information...
1 parent 7e921b7 commit 633d6532beb8cb8bd4f44732177499d4023fe624 @cryptomilk cryptomilk committed Mar 10, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/samplesshd-kbdint.c
  2. +1 −1 examples/samplesshd-tty.c
  3. +1 −1 examples/samplesshd.c
@@ -59,7 +59,7 @@ static void cleanup_pcap(){
#endif
-static int auth_password(char *user, char *password){
+static int auth_password(const char *user, const char *password){
if(strcmp(user, SSHD_USER))
return 0;
if(strcmp(password, SSHD_PASSWORD))
@@ -62,7 +62,7 @@ static void cleanup_pcap(){
#endif
-static int auth_password(char *user, char *password){
+static int auth_password(const char *user, const char *password){
if(strcmp(user, SSHD_USER))
return 0;
if(strcmp(password, SSHD_PASSWORD))
@@ -58,7 +58,7 @@ void cleanup_pcap(){
#endif
-static int auth_password(char *user, char *password){
+static int auth_password(const char *user, const char *password){
if(strcmp(user,"aris"))
return 0;
if(strcmp(password,"lala"))

0 comments on commit 633d653

Please sign in to comment.