X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Fmutt_tunnel.c;h=fab888ff069fa39e289d9275ddfeb2bd0c9f4146;hp=d94f4a029dc9db5135c039787d30aa41c55b91c3;hb=d9fb9e0065b85ee47710bbcba7a81a5266e9e948;hpb=dbacadf0ce81052365d7a43373ac7d4ac67ff91e diff --git a/lib-sys/mutt_tunnel.c b/lib-sys/mutt_tunnel.c index d94f4a0..fab888f 100644 --- a/lib-sys/mutt_tunnel.c +++ b/lib-sys/mutt_tunnel.c @@ -8,20 +8,13 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif +#include #include #include #include -#include -#include -#include -#include -#include -#include +#include #include "mutt.h" @@ -40,9 +33,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) @@ -136,7 +129,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; @@ -152,7 +145,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;