aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-02-02 16:56:31 +0000
committerAndreas Schneider <mail@cynapses.org>2009-02-02 16:56:31 +0000
commit1fd6a2e9e0b57bf861f177e737fd9cbb6458975b (patch)
treed845c12a626a802b6cc2da8d1e98c7bc52194bbc /include/libssh/priv.h
parent9414b53befc24d462f5e5d00eea112a7b01806a7 (diff)
downloadlibssh-1fd6a2e9e0b57bf861f177e737fd9cbb6458975b.tar.gz
libssh-1fd6a2e9e0b57bf861f177e737fd9cbb6458975b.tar.xz
libssh-1fd6a2e9e0b57bf861f177e737fd9cbb6458975b.zip
Fix build warnings in socket code.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@220 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index a18d23e2..d0babab5 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -455,7 +455,7 @@ int agent_ident_count(struct ssh_session *session);
/* socket.c */
struct socket;
-void ssh_socket_init();
+void ssh_socket_init(void);
struct socket *ssh_socket_new(SSH_SESSION *session);
void ssh_socket_free(struct socket *s);
void ssh_socket_set_fd(struct socket *s, socket_t fd);
@@ -469,8 +469,9 @@ int ssh_socket_write(struct socket *s,const void *buffer, int len);
int ssh_socket_is_open(struct socket *s);
int ssh_socket_fd_isset(struct socket *s, fd_set *set);
void ssh_socket_fd_set(struct socket *s, fd_set *set, int *fd_max);
-int ssh_socket_completeread(struct socket *s, void *buffer, int len);
-int ssh_socket_wait_for_data(struct socket *s, SSH_SESSION *session,int len);
+int ssh_socket_completeread(struct socket *s, void *buffer, u32 len);
+int ssh_socket_completewrite(struct socket *s, void *buffer, u32 len);
+int ssh_socket_wait_for_data(struct socket *s, SSH_SESSION *session, u32 len);
int ssh_socket_nonblocking_flush(struct socket *s);
int ssh_socket_blocking_flush(struct socket *s);
int ssh_socket_poll(struct socket *s, int *write, int *except);