X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-sys%2Fmutt_socket.h;h=84664e140bfc07ce417f2e2c19f05298e5db71ef;hb=ebc89176d4b5d2b1363114bd716c7f7fcb2464aa;hp=9369b2acd375e312d3aee14a40620287c55bb60e;hpb=ccf2b75a9ed50a79c4d8e5d6235c7313fcd3719a;p=apps%2Fmadmutt.git diff --git a/lib-sys/mutt_socket.h b/lib-sys/mutt_socket.h index 9369b2a..84664e1 100644 --- a/lib-sys/mutt_socket.h +++ b/lib-sys/mutt_socket.h @@ -34,16 +34,16 @@ typedef struct _connection { struct _connection *next; void *sockdata; - int (*conn_read) (struct _connection * conn, char *buf, size_t len); + int (*conn_read) (struct _connection * conn, char *buf, ssize_t len); int (*conn_write) (struct _connection * conn, const char *buf, - size_t count); + ssize_t count); int (*conn_open) (struct _connection * conn); int (*conn_close) (struct _connection * conn); } CONNECTION; int mutt_socket_open (CONNECTION * conn); int mutt_socket_close (CONNECTION * conn); -int mutt_socket_read (CONNECTION * conn, char *buf, size_t len); +int mutt_socket_read (CONNECTION * conn, char *buf, ssize_t len); int mutt_socket_readchar (CONNECTION * conn, char *c); #define mutt_socket_readln(A,B,C) mutt_socket_readln_d(A,B,C,M_SOCK_LOG_CMD) @@ -58,8 +58,8 @@ void mutt_socket_free (CONNECTION * conn); CONNECTION *mutt_conn_find (const CONNECTION * start, const ACCOUNT * account); -int raw_socket_read (CONNECTION * conn, char *buf, size_t len); -int raw_socket_write (CONNECTION * conn, const char *buf, size_t count); +int raw_socket_read (CONNECTION * conn, char *buf, ssize_t len); +int raw_socket_write (CONNECTION * conn, const char *buf, ssize_t count); int raw_socket_open (CONNECTION * conn); int raw_socket_close (CONNECTION * conn);