diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-05 09:24:53 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-05 09:24:53 +0000 |
commit | ef1a41efcf92d7914f93b1cc851bcb5b22518172 (patch) | |
tree | f7f8fedc55e103ba6dd05a5df16be5b66ea8cc0f /libssh/auth.c | |
parent | dbab7b5a181248144a536e776fa62b4c34ad6e01 (diff) | |
download | libssh-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
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 17 |
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 */ |