]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-gperf.gperf
tree-wide: adjust fall through comments so that gcc is happy
[thirdparty/systemd.git] / src / network / networkd-gperf.gperf
index 0625fb335b8097e6751e70e8626b3d29538101b9..54161446bba942bd58fe25dd4a4b9cf9a9de26e5 100644 (file)
@@ -1,7 +1,11 @@
 %{
+#if __GNUC__ >= 7
+_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
+#endif
 #include <stddef.h>
 #include "conf-parser.h"
 #include "networkd-conf.h"
+#include "networkd-manager.h"
 %}
 struct ConfigPerfItem;
 %null_strings
@@ -14,5 +18,5 @@ struct ConfigPerfItem;
 %struct-type
 %includes
 %%
-DUID.Type,              config_parse_duid_type,                 0,                                  offsetof(Manager, duid_type)
-DUID.RawData,           config_parse_duid_rawdata,              DUID_CONFIG_SOURCE_GLOBAL,          offsetof(Manager, dhcp_duid)
+DHCP.DUIDType,              config_parse_duid_type,                 0,          offsetof(Manager, duid.type)
+DHCP.DUIDRawData,           config_parse_duid_rawdata,              0,          offsetof(Manager, duid)