diff --git a/src/core/devices/nm-device-private.h b/src/core/devices/nm-device-private.h index 3bf5925cf..2f73a01ba 100644 --- a/src/core/devices/nm-device-private.h +++ b/src/core/devices/nm-device-private.h @@ -115,8 +115,8 @@ gboolean nm_device_sysctl_ip_conf_set(NMDevice *self, NML3ConfigData *nm_device_create_l3_config_data(NMDevice *self, NMIPConfigSource source); -const NML3ConfigData *nm_device_create_l3_config_data_from_connection(NMDevice *self, - NMConnection *connection); +NML3ConfigData *nm_device_create_l3_config_data_from_connection(NMDevice *self, + NMConnection *connection); void nm_device_ip_method_dhcp4_start(NMDevice *self); diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index daf5a96d0..5421dc42d 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -3380,7 +3380,7 @@ nm_device_create_l3_config_data(NMDevice *self, NMIPConfigSource source) return nm_l3_config_data_new(nm_device_get_multi_index(self), ifindex, source); } -const NML3ConfigData * +NML3ConfigData * nm_device_create_l3_config_data_from_connection(NMDevice *self, NMConnection *connection) { NML3ConfigData *l3cd;