]> granicus.if.org Git - neomutt/commitdiff
Refactor: Remove unused return type 851/head
authorAnton Rieger <seishinryohosha@jikken.de>
Fri, 13 Oct 2017 11:07:47 +0000 (13:07 +0200)
committerRichard Russon <rich@flatcap.org>
Sat, 14 Oct 2017 14:51:27 +0000 (15:51 +0100)
* mutt_tunnel_socket_setup()

mutt_tunnel.c
mutt_tunnel.h

index e666ec2a6e062466402ebe1623d031104640af2e..282a908ba41aa92a98c3803aeea0787b17b40d89 100644 (file)
@@ -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;
 }
index 8a60da7d316d2eb4ac0bed787ba4b18e7cd1d0e8..82abc8ac11c6c2823c2d23e74e2783e5e3985d16 100644 (file)
@@ -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 */