summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-05 20:17:21 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-06 10:19:52 +0100
commitd42add3c17886fc22e88714291fdbe6d2a0ae2ee (patch)
treea13fe2f90558fbeee060c5fefd3c8efa4e36aeb8
parentshared/linux: update kernel headers (diff)
downloadsystemd-d42add3c17886fc22e88714291fdbe6d2a0ae2ee.tar.xz
systemd-d42add3c17886fc22e88714291fdbe6d2a0ae2ee.zip
sd-network: stop using fake flexible array
-rw-r--r--src/libsystemd-network/dhcp-protocol.h2
1 files changed, 1 insertions, 1 deletions
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;