1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-24 19:37:48 +03:00

example: Use const in auth_password from samplesshd.

This commit is contained in:
Andreas Schneider
2011-03-10 11:23:45 +01:00
parent 7e921b7afb
commit 633d6532be
3 changed files with 3 additions and 3 deletions

View File

@@ -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))

View File

@@ -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))

View File

@@ -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"))