aboutsummaryrefslogtreecommitdiff
path: root/samplesshd.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-02-06 09:59:54 +0000
committerAndreas Schneider <mail@cynapses.org>2009-02-06 09:59:54 +0000
commitff19095415f94e99dde514ac5be64fda51caced1 (patch)
tree68b5f281125375a51ff594da58d992115a55fd45 /samplesshd.c
parentb8c78bdb5a7bbdbe9138e46092eaa693f520e864 (diff)
downloadlibssh-ff19095415f94e99dde514ac5be64fda51caced1.tar.gz
libssh-ff19095415f94e99dde514ac5be64fda51caced1.tar.xz
libssh-ff19095415f94e99dde514ac5be64fda51caced1.zip
Fix build warnings in server sample.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@233 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'samplesshd.c')
-rw-r--r--samplesshd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/samplesshd.c b/samplesshd.c
index 3e98b3e5..ee16725c 100644
--- a/samplesshd.c
+++ b/samplesshd.c
@@ -31,7 +31,7 @@ MA 02111-1307, USA. */
#define KEYS_FOLDER "/etc/ssh/"
#endif
-int auth_password(char *user, char *password){
+static int auth_password(char *user, char *password){
if(strcmp(user,"aris"))
return 0;
if(strcmp(password,"lala"))
@@ -45,6 +45,7 @@ int main(int argc, char **argv){
SSH_BIND *ssh_bind;
SSH_MESSAGE *message;
CHANNEL *chan=0;
+ BUFFER *buf;
int auth=0;
int sftp=0;
int i;
@@ -142,7 +143,7 @@ int main(int argc, char **argv){
return 1;
}
printf("it works !\n");
- BUFFER *buf=buffer_new();
+ buf=buffer_new();
do{
i=channel_read(chan,buf,0,0);
if(i>0)