From e39dc2eba78c2211702053b9300614a3f87debb7 Mon Sep 17 00:00:00 2001 From: Anton Rieger Date: Fri, 13 Oct 2017 13:07:47 +0200 Subject: [PATCH] Refactor: Remove unused return type * mutt_tunnel_socket_setup() --- mutt_tunnel.c | 10 +++++++--- mutt_tunnel.h | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mutt_tunnel.c b/mutt_tunnel.c index e666ec2a6..282a908ba 100644 --- a/mutt_tunnel.c +++ b/mutt_tunnel.c @@ -189,13 +189,17 @@ static int tunnel_socket_poll(struct Connection *conn, time_t wait_secs) return rc; } -int mutt_tunnel_socket_setup(struct Connection *conn) +/** + * mutt_tunnel_socket_setup - setups tunnel connection functions. + * @param conn Connection to asign functions to + * + * Assign tunnel socket functions to the Connection conn. + */ +void mutt_tunnel_socket_setup(struct Connection *conn) { conn->conn_open = tunnel_socket_open; conn->conn_close = tunnel_socket_close; conn->conn_read = tunnel_socket_read; conn->conn_write = tunnel_socket_write; conn->conn_poll = tunnel_socket_poll; - - return 0; } diff --git a/mutt_tunnel.h b/mutt_tunnel.h index 8a60da7d3..82abc8ac1 100644 --- a/mutt_tunnel.h +++ b/mutt_tunnel.h @@ -23,6 +23,6 @@ struct Connection; -int mutt_tunnel_socket_setup(struct Connection *conn); +void mutt_tunnel_socket_setup(struct Connection *conn); #endif /* _MUTT_TUNNEL_H */ -- 2.40.0