mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 19:28:04 +02:00
manager: fix syntax
Remove the commas and use compound literals.
This commit is contained in:
parent
952f6a3787
commit
ed29863645
1 changed files with 4 additions and 2 deletions
|
|
@ -4713,8 +4713,10 @@ find_slaves(NMManager *manager,
|
||||||
}
|
}
|
||||||
|
|
||||||
nm_assert(n_slaves < n_all_connections);
|
nm_assert(n_slaves < n_all_connections);
|
||||||
slaves[n_slaves].connection = candidate, slaves[n_slaves].device = slave_device,
|
slaves[n_slaves++] = (SlaveConnectionInfo){
|
||||||
n_slaves++;
|
.connection = candidate,
|
||||||
|
.device = slave_device,
|
||||||
|
};
|
||||||
|
|
||||||
if (slave_device)
|
if (slave_device)
|
||||||
g_hash_table_add(devices, slave_device);
|
g_hash_table_add(devices, slave_device);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue