mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 18:28:03 +02:00
device: remove 'const' qualifier from function signature
nm_device_create_l3_config_data_from_connection() returns an unsealed NML3ConfigData that can still be modified afterwards.
This commit is contained in:
parent
0e5815ba84
commit
4e37e4c614
2 changed files with 3 additions and 3 deletions
|
|
@ -115,8 +115,8 @@ gboolean nm_device_sysctl_ip_conf_set(NMDevice *self,
|
||||||
|
|
||||||
NML3ConfigData *nm_device_create_l3_config_data(NMDevice *self, NMIPConfigSource source);
|
NML3ConfigData *nm_device_create_l3_config_data(NMDevice *self, NMIPConfigSource source);
|
||||||
|
|
||||||
const NML3ConfigData *nm_device_create_l3_config_data_from_connection(NMDevice *self,
|
NML3ConfigData *nm_device_create_l3_config_data_from_connection(NMDevice *self,
|
||||||
NMConnection *connection);
|
NMConnection *connection);
|
||||||
|
|
||||||
void nm_device_ip_method_dhcp4_start(NMDevice *self);
|
void nm_device_ip_method_dhcp4_start(NMDevice *self);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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)
|
nm_device_create_l3_config_data_from_connection(NMDevice *self, NMConnection *connection)
|
||||||
{
|
{
|
||||||
NML3ConfigData *l3cd;
|
NML3ConfigData *l3cd;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue