aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-05 10:32:08 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-05 10:32:08 +0000
commit081e81b8134caebd1c2b394f86a7bb414191a9ca (patch)
treeaf0915420010d4844a4cf96049e11d8739e366b0 /libssh/server.c
parent688ac9382f2fc2fadbad49fc65247b9a2117c279 (diff)
downloadlibssh-081e81b8134caebd1c2b394f86a7bb414191a9ca.tar.gz
libssh-081e81b8134caebd1c2b394f86a7bb414191a9ca.tar.xz
libssh-081e81b8134caebd1c2b394f86a7bb414191a9ca.zip
Fix build warnings.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@401 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libssh/server.c b/libssh/server.c
index d181444..cd2db3e 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;