From: Tim Duesterhus Date: Sat, 6 Mar 2021 19:06:47 +0000 (+0100) Subject: CLEANUP: connection: Use `VAR_ARRAY` in `struct tlv` definition X-Git-Tag: v2.4-dev12~73 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=c44b8de9959081fa6df511f9548f3031205ce6ee;p=haproxy.git CLEANUP: connection: Use `VAR_ARRAY` in `struct tlv` definition This is for consistency with `struct tlv_ssl`. --- diff --git a/include/haproxy/connection-t.h b/include/haproxy/connection-t.h index 9c2af7b8f..0bcceacff 100644 --- a/include/haproxy/connection-t.h +++ b/include/haproxy/connection-t.h @@ -649,7 +649,7 @@ struct tlv { uint8_t type; uint8_t length_hi; uint8_t length_lo; - uint8_t value[0]; + uint8_t value[VAR_ARRAY]; }__attribute__((packed)); struct tlv_ssl {