]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-network: stop using fake flexible array
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Feb 2023 19:17:21 +0000 (20:17 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2023 09:19:52 +0000 (10:19 +0100)
src/libsystemd-network/dhcp-protocol.h

index c4972d144c238c2cff5d708a8846278d50f483c0..062ce006f30ff601222e7b2ee8f33acddba488ef 100644 (file)
@@ -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;