]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connection: drop an uneeded leftover cast
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Oct 2023 12:14:20 +0000 (14:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Oct 2023 12:16:59 +0000 (14:16 +0200)
In conn_delete_from_tree() there remains a cast of the toremove_list
to struct list while the introduction of the union precisely was to
avoid this cast. It's a leftover from the first version of patch
5afcb686b ("MAJOR: connection: purge idle conn by last usage") merged
into in 2.9-dev4, let's fix that.

No backport is needed.

src/connection.c

index ba29a678f83cef1773c75459826ebe786074a9e6..44cfea4c279eebe78fa3fae865d9d84d772122c3 100644 (file)
@@ -78,7 +78,7 @@ struct conn_tlv_list *conn_get_tlv(struct connection *conn, int type)
  */
 void conn_delete_from_tree(struct connection *conn)
 {
-       LIST_DEL_INIT((struct list *)&conn->toremove_list);
+       LIST_DEL_INIT(&conn->idle_list);
        eb64_delete(&conn->hash_node->node);
 }