projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small optims.
[apps/madmutt.git]
/
lib-sys
/
mutt_tunnel.c
diff --git
a/lib-sys/mutt_tunnel.c
b/lib-sys/mutt_tunnel.c
index
b74c5c5
..
f180f38
100644
(file)
--- 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 "exit.h"
#include "mutt_socket.h"
#include "mutt_tunnel.h"
+#include "mutt_signal.h"
/* -- data types -- */
typedef struct {
/* -- data types -- */
typedef struct {
@@
-39,9
+40,9
@@
typedef struct {
/* forward declarations */
static int tunnel_socket_open (CONNECTION *);
static int tunnel_socket_close (CONNECTION *);
/* 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, s
s
ize_t len);
static int tunnel_socket_write (CONNECTION * conn, const char *buf,
static int tunnel_socket_write (CONNECTION * conn, const char *buf,
- size_t len);
+ s
s
ize_t len);
/* -- public functions -- */
int mutt_tunnel_socket_setup (CONNECTION * conn)
/* -- public functions -- */
int mutt_tunnel_socket_setup (CONNECTION * conn)
@@
-135,7
+136,7
@@
static int tunnel_socket_close (CONNECTION * conn)
return 0;
}
return 0;
}
-static int tunnel_socket_read (CONNECTION * conn, char *buf, size_t len)
+static int tunnel_socket_read (CONNECTION * conn, char *buf, s
s
ize_t len)
{
TUNNEL_DATA *tunnel = (TUNNEL_DATA *) conn->sockdata;
int rc;
{
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,
}
static int tunnel_socket_write (CONNECTION * conn, const char *buf,
- size_t len)
+ s
s
ize_t len)
{
TUNNEL_DATA *tunnel = (TUNNEL_DATA *) conn->sockdata;
int rc;
{
TUNNEL_DATA *tunnel = (TUNNEL_DATA *) conn->sockdata;
int rc;