mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 01:30:16 +01:00
core: increase size of the platform object type enum
This commit is contained in:
parent
dad4da06b1
commit
c012d5040a
3 changed files with 4 additions and 4 deletions
|
|
@ -624,7 +624,7 @@ _l3_config_notify_data_to_string(const NML3ConfigNotifyData *notify_data,
|
|||
case NM_L3_CONFIG_NOTIFY_TYPE_PLATFORM_CHANGE_ON_IDLE:
|
||||
nm_strbuf_append(&s,
|
||||
&l,
|
||||
", obj-type-flags=0x%x",
|
||||
", obj-type-flags=0x%" G_GINT64_MODIFIER "x",
|
||||
notify_data->platform_change_on_idle.obj_type_flags);
|
||||
break;
|
||||
case NM_L3_CONFIG_NOTIFY_TYPE_IPV4LL_EVENT:
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ typedef struct {
|
|||
} platform_change;
|
||||
|
||||
struct {
|
||||
guint32 obj_type_flags;
|
||||
guint64 obj_type_flags;
|
||||
} platform_change_on_idle;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
|
|
@ -194,10 +194,10 @@ typedef enum _nm_packed {
|
|||
NMP_OBJECT_TYPE_MAX = __NMP_OBJECT_TYPE_LAST - 1,
|
||||
} NMPObjectType;
|
||||
|
||||
static inline guint32
|
||||
static inline guint64
|
||||
nmp_object_type_to_flags(NMPObjectType obj_type)
|
||||
{
|
||||
G_STATIC_ASSERT_EXPR(NMP_OBJECT_TYPE_MAX < 32);
|
||||
G_STATIC_ASSERT_EXPR(NMP_OBJECT_TYPE_MAX < 64);
|
||||
|
||||
nm_assert(_NM_INT_NOT_NEGATIVE(obj_type));
|
||||
nm_assert(obj_type < NMP_OBJECT_TYPE_MAX);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue