From: Anton Rieger Date: Fri, 13 Oct 2017 11:07:47 +0000 (+0200) Subject: Refactor: Remove unused return type X-Git-Tag: neomutt-20171027~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F851%2Fhead;p=neomutt Refactor: Remove unused return type * mutt_tunnel_socket_setup() --- 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 */