BUILD: connection: do not use VAR_ARRAY in struct tlv
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 09:15:16 +0000 (10:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 09:15:16 +0000 (10:15 +0100)
commitc93638e1d155f6419bca50daec42dcd370bae39f
tree1969b297185bdbf9229a9134fdddb218a28a59df
parent018251667e4c95478ce0026f4d700e0420f8ce24
BUILD: connection: do not use VAR_ARRAY in struct tlv

It was brought by commit c44b8de99 ("CLEANUP: connection: Use `VAR_ARRAY`
in `struct tlv` definition") but breaks the build with clang. Actually it
had already been done 6 months ago by commit 4987a4744 ("CLEANUP: tree-wide:
use VAR_ARRAY instead of [0] in various definitions") then reverted by
commit 441b6c31e ("BUILD: connection: fix build on clang after the VAR_ARRAY
cleanup") which explained the same thing but didn't place a comment in the
code to justify this (in short it's just an end of struct marker).
include/haproxy/connection-t.h