mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 04:10:14 +01: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);
|
||||
slaves[n_slaves].connection = candidate, slaves[n_slaves].device = slave_device,
|
||||
n_slaves++;
|
||||
slaves[n_slaves++] = (SlaveConnectionInfo){
|
||||
.connection = candidate,
|
||||
.device = slave_device,
|
||||
};
|
||||
|
||||
if (slave_device)
|
||||
g_hash_table_add(devices, slave_device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue