From 081e81b8134caebd1c2b394f86a7bb414191a9ca Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 5 Apr 2009 10:32:08 +0000 Subject: [PATCH] Fix build warnings. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@401 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libssh/server.c b/libssh/server.c index d181444b..cd2db3e0 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -57,7 +57,8 @@ inline char* hstrerror(int h_errno_val) { #include "libssh/ssh2.h" // TODO: must use getaddrinfo -static socket_t bind_socket(SSH_BIND *ssh_bind,char *hostname, int port) { +static socket_t bind_socket(SSH_BIND *ssh_bind, const char *hostname, + int port) { struct sockaddr_in myaddr; int opt = 1; socket_t s = socket(PF_INET, SOCK_STREAM, 0); @@ -100,7 +101,7 @@ void ssh_bind_set_options(SSH_BIND *ssh_bind, SSH_OPTIONS *options){ } int ssh_bind_listen(SSH_BIND *ssh_bind){ - char *host; + const char *host; int fd; if(!ssh_bind->options) return -1;