aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-02-02 15:01:18 +0000
committerAndreas Schneider <mail@cynapses.org>2009-02-02 15:01:18 +0000
commitfc0928a5721041e70807c33bd16fe852225d97f7 (patch)
tree2ea399a66be24df78aad4f1404b5bb35f0a4ce58 /libssh/auth.c
parented53a70854400d64911c94995e28296bd3298525 (diff)
downloadlibssh-fc0928a5721041e70807c33bd16fe852225d97f7.tar.gz
libssh-fc0928a5721041e70807c33bd16fe852225d97f7.tar.xz
libssh-fc0928a5721041e70807c33bd16fe852225d97f7.zip
Fix build warnings of the auth code.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@205 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libssh/auth.c b/libssh/auth.c
index c2fc29f8..2c072adf 100644
--- a/libssh/auth.c
+++ b/libssh/auth.c
@@ -54,7 +54,6 @@ static int wait_auth_status(SSH_SESSION *session,int kbdint){
int cont=1;
STRING *auth;
u8 partial=0;
- int todo = 0;
char *auth_methods = NULL;
enter_function();
while(cont){
@@ -823,9 +822,9 @@ char *ssh_userauth_kbdint_getinstruction(SSH_SESSION *session){
* \returns pointer to the prompt. Do not free it
*/
-char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, int i,
+char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, unsigned int i,
char *echo){
- if(i > session->kbdint->nprompts || i<0)
+ if(i > session->kbdint->nprompts)
return NULL;
if(echo)
*echo=session->kbdint->echo[i];