summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-04-17 13:54:24 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-17 13:31:22 +0200
commit31bb1846a078ee7907b49968e0b55db8bb093608 (patch)
tree6aa08f5323dac1b10b2ea6ed448513186a3f0d94 /src/device.c
parent243443997b0f19635b50fdb0ace3e467856debd5 (diff)
downloadconnman-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.c2
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;