diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-04-17 13:54:24 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-17 13:31:22 +0200 |
commit | 31bb1846a078ee7907b49968e0b55db8bb093608 (patch) | |
tree | 6aa08f5323dac1b10b2ea6ed448513186a3f0d94 /src/device.c | |
parent | 243443997b0f19635b50fdb0ace3e467856debd5 (diff) | |
download | connman-31bb1846a078ee7907b49968e0b55db8bb093608.tar.gz connman-31bb1846a078ee7907b49968e0b55db8bb093608.tar.bz2 connman-31bb1846a078ee7907b49968e0b55db8bb093608.zip |
device: use g_hash_table_replace instead of insert function
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c index e7568f64..0a3c6908 100644 --- a/src/device.c +++ b/src/device.c @@ -972,7 +972,7 @@ int connman_device_add_network(struct connman_device *device, __connman_network_set_device(network, device); - g_hash_table_insert(device->networks, g_strdup(identifier), + g_hash_table_replace(device->networks, g_strdup(identifier), network); return 0; |