From ef1a41efcf92d7914f93b1cc851bcb5b22518172 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 5 Apr 2009 09:24:53 +0000 Subject: [PATCH] Fix compile warning (const). git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@393 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/auth.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libssh/auth.c b/libssh/auth.c index 75692a47..398dec38 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 */