summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-05 09:24:53 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-05 09:24:53 +0000
commitef1a41efcf92d7914f93b1cc851bcb5b22518172 (patch)
treef7f8fedc55e103ba6dd05a5df16be5b66ea8cc0f
parentdbab7b5a181248144a536e776fa62b4c34ad6e01 (diff)
downloadlibssh-ef1a41efcf92d7914f93b1cc851bcb5b22518172.tar.gz
libssh-ef1a41efcf92d7914f93b1cc851bcb5b22518172.tar.xz
libssh-ef1a41efcf92d7914f93b1cc851bcb5b22518172.zip
Fix compile warning (const).
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@393 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--libssh/auth.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index 75692a4..398dec3 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -480,8 +480,21 @@ int ssh_userauth_password(SSH_SESSION *session, const char *username, const char
return err;
}
-static char *keys_path[]={NULL,"%s/.ssh/identity","%s/.ssh/id_dsa","%s/.ssh/id_rsa",NULL};
-static char *pub_keys_path[]={NULL,"%s/.ssh/identity.pub","%s/.ssh/id_dsa.pub","%s/.ssh/id_rsa.pub",NULL};
+static const char *keys_path[] = {
+ NULL,
+ "%s/.ssh/identity",
+ "%s/.ssh/id_dsa",
+ "%s/.ssh/id_rsa",
+ NULL
+};
+
+static const char *pub_keys_path[] = {
+ NULL,
+ "%s/.ssh/identity.pub",
+ "%s/.ssh/id_dsa.pub",
+ "%s/.ssh/id_rsa.pub",
+ NULL
+};
/* this function initialy was in the client */
/* but the fools are the ones who never change mind */