]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connection: Use `VAR_ARRAY` in `struct tlv` definition
authorTim Duesterhus <tim@bastelstu.be>
Sat, 6 Mar 2021 19:06:47 +0000 (20:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 08:24:32 +0000 (09:24 +0100)
This is for consistency with `struct tlv_ssl`.

include/haproxy/connection-t.h

index 9c2af7b8f90360758c4f1475facef4cec594aee6..0bcceacff977efbec2f92f5c5dffc3c898cb7a17 100644 (file)
@@ -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 {