mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 04:18:07 +02:00
core: fix device detection due to bug in NM_DEVICE_DEFINE_LINK_TYPES()
Fixes: 86787e0278 ('core: improve implementation of NM_DEVICE_DEFINE_LINK_TYPES() macro')
This commit is contained in:
parent
19d0b035dd
commit
89c8a47047
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ void nm_device_commit_mtu (NMDevice *self);
|
||||||
((NM_NARG (__VA_ARGS__) == 0) \
|
((NM_NARG (__VA_ARGS__) == 0) \
|
||||||
? NULL \
|
? NULL \
|
||||||
: ({ \
|
: ({ \
|
||||||
const NMLinkType _types[NM_NARG (__VA_ARGS__) + 1] = { \
|
static const NMLinkType _types[NM_NARG (__VA_ARGS__) + 1] = { \
|
||||||
__VA_ARGS__ \
|
__VA_ARGS__ \
|
||||||
_NM_MACRO_COMMA_IF_ARGS (__VA_ARGS__) \
|
_NM_MACRO_COMMA_IF_ARGS (__VA_ARGS__) \
|
||||||
NM_LINK_TYPE_NONE, \
|
NM_LINK_TYPE_NONE, \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue