diff options
Diffstat (limited to 'libnm-core/nm-setting-infiniband.c')
-rw-r--r-- | libnm-core/nm-setting-infiniband.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libnm-core/nm-setting-infiniband.c b/libnm-core/nm-setting-infiniband.c index 8c55048865..6af950c5a6 100644 --- a/libnm-core/nm-setting-infiniband.c +++ b/libnm-core/nm-setting-infiniband.c @@ -339,8 +339,11 @@ set_property (GObject *object, guint prop_id, /*****************************************************************************/ static void -nm_setting_infiniband_init (NMSettingInfiniband *setting) +nm_setting_infiniband_init (NMSettingInfiniband *self) { + NMSettingInfinibandPrivate *priv = NM_SETTING_INFINIBAND_GET_PRIVATE (self); + + priv->p_key = -1; } /** @@ -433,7 +436,6 @@ nm_setting_infiniband_class_init (NMSettingInfinibandClass *klass) g_param_spec_uint (NM_SETTING_INFINIBAND_MTU, "", "", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | NM_SETTING_PARAM_FUZZY_IGNORE | G_PARAM_STATIC_STRINGS); @@ -455,7 +457,6 @@ nm_setting_infiniband_class_init (NMSettingInfinibandClass *klass) g_param_spec_string (NM_SETTING_INFINIBAND_TRANSPORT_MODE, "", "", NULL, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); @@ -481,7 +482,6 @@ nm_setting_infiniband_class_init (NMSettingInfinibandClass *klass) g_param_spec_int (NM_SETTING_INFINIBAND_P_KEY, "", "", -1, 0xFFFF, -1, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); @@ -505,7 +505,6 @@ nm_setting_infiniband_class_init (NMSettingInfinibandClass *klass) g_param_spec_string (NM_SETTING_INFINIBAND_PARENT, "", "", NULL, G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | NM_SETTING_PARAM_INFERRABLE | G_PARAM_STATIC_STRINGS); |