]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tree-wide: use VAR_ARRAY instead of [0] in various definitions
authorWilly Tarreau <w@1wt.eu>
Sat, 12 Sep 2020 18:56:41 +0000 (20:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Sep 2020 18:56:41 +0000 (20:56 +0200)
commit4987a474469d6c7c50ea2a8997cdd79f5059cb0c
treeb111331db17f618697d0a391c4b4ce09688b4dad
parente52b6e5456d82e8105a3cd18e4dfdccb776e319f
CLEANUP: tree-wide: use VAR_ARRAY instead of [0] in various definitions

Surprisingly there were still a number of [0] definitions for variable
sized arrays in certain structures all over the code. We need to use
VAR_ARRAY instead of zero to accommodate various compilers' preferences,
as zero was used only on old ones and tends to report errors on new ones.
include/haproxy/connection-t.h
include/haproxy/hpack-tbl-t.h
include/haproxy/htx-t.h
include/haproxy/port_range-t.h
include/haproxy/proxy-t.h
include/haproxy/shctx-t.h
include/haproxy/ssl_ckch-t.h
include/haproxy/ssl_sock-t.h