]> git.kaiwu.me - haproxy.git/commit
CLEANUP: http_htx: rename inner 'type' to 'ptype' to avoid variable shadowing
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 12:39:16 +0000 (14:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commitfa9cefd277cd02726d51eb0dda9e5ba79270da87
treeebb727095b3327430eb654aae46c1dfdadf0f6c5
parentbe2851f304d3a147808108b53725718451944fd9
CLEANUP: http_htx: rename inner 'type' to 'ptype' to avoid variable shadowing

In http_add_header() there are "type" variables of the same type at two
levels, which is a bit confusing. The inner one is for the "prev" block,
so let's rename it "ptype" by analogy with "pblk".
src/http_htx.c