1
1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@401 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
Andreas Schneider 2009-04-05 10:32:08 +00:00
родитель 688ac9382f
Коммит 081e81b813

Просмотреть файл

@ -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;