diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-12 01:33:03 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-12 01:33:03 +0000 |
commit | feb4a932472bc5bcb2e13d7e60bc89ab70aabd7a (patch) | |
tree | 64edb826b7fd41f2bf13153bfeca0c50814186b2 /include | |
parent | 68a1a4cc2138039a85a8a8353c92d398eed57ff0 (diff) | |
download | libssh-feb4a932472bc5bcb2e13d7e60bc89ab70aabd7a.tar.gz libssh-feb4a932472bc5bcb2e13d7e60bc89ab70aabd7a.tar.xz libssh-feb4a932472bc5bcb2e13d7e60bc89ab70aabd7a.zip |
fixed wrong prototypes for socket_t
bug #0000004
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@149 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 4 | ||||
-rw-r--r-- | include/libssh/priv.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index c96bebe8..35f35240 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -167,7 +167,7 @@ STRING *ssh_get_pubkey(SSH_SESSION *session); /* in connect.c */ int ssh_fd_poll(SSH_SESSION *session,int *write, int *except); -int ssh_select(CHANNEL **channels,CHANNEL **outchannels, int maxfd, fd_set *readfds, struct timeval *timeout); +int ssh_select(CHANNEL **channels,CHANNEL **outchannels, socket_t maxfd, fd_set *readfds, struct timeval *timeout); void publickey_free(PUBLIC_KEY *key); @@ -217,7 +217,7 @@ void ssh_options_set_username(SSH_OPTIONS *opt,char *username); void ssh_options_set_port(SSH_OPTIONS *opt, unsigned int port); int ssh_options_getopt(SSH_OPTIONS *options, int *argcptr, char **argv); void ssh_options_set_host(SSH_OPTIONS *opt, const char *host); -void ssh_options_set_fd(SSH_OPTIONS *opt, int fd); +void ssh_options_set_fd(SSH_OPTIONS *opt, socket_t fd); void ssh_options_set_bind(SSH_OPTIONS *opt, char *bindaddr,int port); void ssh_options_set_identity(SSH_OPTIONS *opt, char *identity); void ssh_options_set_status_callback(SSH_OPTIONS *opt, void (*callback) diff --git a/include/libssh/priv.h b/include/libssh/priv.h index f7a2130e..fa8ba3c2 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -492,7 +492,7 @@ int packet_wait(SSH_SESSION *session,int type,int blocking); int packet_flush(SSH_SESSION *session, int enforce_blocking); /* connect.c */ SSH_SESSION *ssh_session_new(); -int ssh_connect_host(SSH_SESSION *session, const char *host,const char +socket_t ssh_connect_host(SSH_SESSION *session, const char *host,const char *bind_addr, int port, long timeout, long usec); /* in kex.c */ |