diff options
author | Thomas Haller <thaller@redhat.com> | 2020-01-28 14:38:41 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-01-28 14:38:47 +0100 |
commit | 89c8a470473498f080b6d0920ddbce0bc0cdc36f (patch) | |
tree | e3853a7db419e8ac939d8594c87a7948bf8aaef4 | |
parent | 19d0b035ddfa918d0fd71375665e7ce0af61aaf9 (diff) | |
download | NetworkManager-89c8a470473498f080b6d0920ddbce0bc0cdc36f.tar.gz |
core: fix device detection due to bug in NM_DEVICE_DEFINE_LINK_TYPES()
Fixes: 86787e027828 ('core: improve implementation of NM_DEVICE_DEFINE_LINK_TYPES() macro')
-rw-r--r-- | src/devices/nm-device-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device-private.h b/src/devices/nm-device-private.h index 2e33d8a4a7..a8e577e645 100644 --- a/src/devices/nm-device-private.h +++ b/src/devices/nm-device-private.h @@ -180,7 +180,7 @@ void nm_device_commit_mtu (NMDevice *self); ((NM_NARG (__VA_ARGS__) == 0) \ ? NULL \ : ({ \ - const NMLinkType _types[NM_NARG (__VA_ARGS__) + 1] = { \ + static const NMLinkType _types[NM_NARG (__VA_ARGS__) + 1] = { \ __VA_ARGS__ \ _NM_MACRO_COMMA_IF_ARGS (__VA_ARGS__) \ NM_LINK_TYPE_NONE, \ |