From d42add3c17886fc22e88714291fdbe6d2a0ae2ee Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 5 Feb 2023 20:17:21 +0100 Subject: sd-network: stop using fake flexible array --- src/libsystemd-network/dhcp-protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-network/dhcp-protocol.h b/src/libsystemd-network/dhcp-protocol.h index c4972d144c..062ce006f3 100644 --- a/src/libsystemd-network/dhcp-protocol.h +++ b/src/libsystemd-network/dhcp-protocol.h @@ -28,7 +28,7 @@ struct DHCPMessage { uint8_t sname[64]; uint8_t file[128]; be32_t magic; - uint8_t options[0]; + uint8_t options[]; } _packed_; typedef struct DHCPMessage DHCPMessage; -- cgit v1.2.3