X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-sys%2Fmutt_tunnel.c;h=f180f381b82eb42069a73f6973cbb946a5a2a9bc;hb=2c3617ad2d8a2ad98b573cc34483d1cb7cd451f5;hp=b74c5c5e1f9d7a9ce37a1f094336d05a1c39fca8;hpb=d04295aaf918032c1c2fafc94ddf637cf23341e9;p=apps%2Fmadmutt.git diff --git a/lib-sys/mutt_tunnel.c b/lib-sys/mutt_tunnel.c index b74c5c5..f180f38 100644 --- a/lib-sys/mutt_tunnel.c +++ b/lib-sys/mutt_tunnel.c @@ -28,6 +28,7 @@ #include "exit.h" #include "mutt_socket.h" #include "mutt_tunnel.h" +#include "mutt_signal.h" /* -- data types -- */ typedef struct { @@ -39,9 +40,9 @@ typedef struct { /* forward declarations */ static int tunnel_socket_open (CONNECTION *); static int tunnel_socket_close (CONNECTION *); -static int tunnel_socket_read (CONNECTION * conn, char *buf, size_t len); +static int tunnel_socket_read (CONNECTION * conn, char *buf, ssize_t len); static int tunnel_socket_write (CONNECTION * conn, const char *buf, - size_t len); + ssize_t len); /* -- public functions -- */ int mutt_tunnel_socket_setup (CONNECTION * conn) @@ -135,7 +136,7 @@ static int tunnel_socket_close (CONNECTION * conn) return 0; } -static int tunnel_socket_read (CONNECTION * conn, char *buf, size_t len) +static int tunnel_socket_read (CONNECTION * conn, char *buf, ssize_t len) { TUNNEL_DATA *tunnel = (TUNNEL_DATA *) conn->sockdata; int rc; @@ -151,7 +152,7 @@ static int tunnel_socket_read (CONNECTION * conn, char *buf, size_t len) } static int tunnel_socket_write (CONNECTION * conn, const char *buf, - size_t len) + ssize_t len) { TUNNEL_DATA *tunnel = (TUNNEL_DATA *) conn->sockdata; int rc;