[master] fa5e46fb6 vcp: Only generate required RB-tree functions

Nils Goroll nils.goroll at uplex.de
Mon Aug 19 14:26:05 UTC 2024


commit fa5e46fb62fa0d42e26c7afbb47b9c9c781dff85
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Aug 19 16:24:18 2024 +0200

    vcp: Only generate required RB-tree functions
    
    Should address flexelint and SunCC complaints
    
    Ref 3efb24ea66052c8387a32901d92c8386dfe399e1

diff --git a/bin/varnishd/cache/cache_conn_pool.c b/bin/varnishd/cache/cache_conn_pool.c
index 5bfda524b..76e36040d 100644
--- a/bin/varnishd/cache/cache_conn_pool.c
+++ b/bin/varnishd/cache/cache_conn_pool.c
@@ -108,7 +108,12 @@ struct conn_pool {
 static struct lock conn_pools_mtx;
 
 static VRBT_HEAD(vrb, conn_pool) conn_pools = VRBT_INITIALIZER(&conn_pools);
-VRBT_GENERATE_STATIC(vrb, conn_pool, entry, vcp_cmp);
+VRBT_GENERATE_REMOVE_COLOR(vrb, conn_pool, entry, static)
+VRBT_GENERATE_REMOVE(vrb, conn_pool, entry, static)
+VRBT_GENERATE_FIND(vrb, conn_pool, entry, vcp_cmp, static)
+VRBT_GENERATE_INSERT_COLOR(vrb, conn_pool, entry, static)
+VRBT_GENERATE_INSERT_FINISH(vrb, conn_pool, entry, static)
+VRBT_GENERATE_INSERT(vrb, conn_pool, entry, vcp_cmp, static)
 
 /*--------------------------------------------------------------------
  */


More information about the varnish-commit mailing list