summaryrefslogtreecommitdiffstats
path: root/mutt_tunnel.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-07-22 19:48:49 -0700
committerKevin McCarthy <kevin@8t8.us>2017-07-22 19:48:49 -0700
commit75e7e18d35aea137c4a16d3edc98cb32fa6e16b6 (patch)
treef84d2dd128f70456609ee72e80735c46fe59b431 /mutt_tunnel.c
parent2aa03f79892aa193f3e8bbb2037fe666a8122071 (diff)
Add timeout parameter to mutt_socket_poll.
This will be used in the next commit to add a timeout when polling for new mail.
Diffstat (limited to 'mutt_tunnel.c')
-rw-r--r--mutt_tunnel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mutt_tunnel.c b/mutt_tunnel.c
index c1b5a346..e199e4d6 100644
--- a/mutt_tunnel.c
+++ b/mutt_tunnel.c
@@ -45,7 +45,7 @@ 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_write (CONNECTION* conn, const char* buf, size_t len);
-static int tunnel_socket_poll (CONNECTION* conn);
+static int tunnel_socket_poll (CONNECTION* conn, time_t wait_secs);
/* -- public functions -- */
int mutt_tunnel_socket_setup (CONNECTION *conn)
@@ -188,7 +188,7 @@ static int tunnel_socket_write (CONNECTION* conn, const char* buf, size_t len)
return rc;
}
-static int tunnel_socket_poll (CONNECTION* conn)
+static int tunnel_socket_poll (CONNECTION* conn, time_t wait_secs)
{
TUNNEL_DATA* tunnel = (TUNNEL_DATA*) conn->sockdata;
int ofd;
@@ -196,7 +196,7 @@ static int tunnel_socket_poll (CONNECTION* conn)
ofd = conn->fd;
conn->fd = tunnel->readfd;
- rc = raw_socket_poll (conn);
+ rc = raw_socket_poll (conn, wait_secs);
conn->fd = ofd;
return rc;