summaryrefslogtreecommitdiff
path: root/plugins/vpn.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-04-17 13:54:21 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-17 13:31:22 +0200
commit73b2b585cf48b8f92561ba6859df8a9c605a060a (patch)
tree96166918a9185614422236916e8264668339a3b0 /plugins/vpn.c
parent1a9faff827c73959eeb4a35f898a591bbf6f5004 (diff)
downloadconnman-73b2b585cf48b8f92561ba6859df8a9c605a060a.tar.gz
connman-73b2b585cf48b8f92561ba6859df8a9c605a060a.tar.bz2
connman-73b2b585cf48b8f92561ba6859df8a9c605a060a.zip
vpn: use g_hash_table_replace instead of insert function
Diffstat (limited to 'plugins/vpn.c')
-rw-r--r--plugins/vpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/vpn.c b/plugins/vpn.c
index e41a3742..e8b70410 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -505,7 +505,7 @@ int vpn_register(const char *name, struct vpn_driver *vpn_driver,
return -ENOMEM;
}
- g_hash_table_insert(driver_hash, (char *)name, data);
+ g_hash_table_replace(driver_hash, (char *)name, data);
connman_provider_driver_register(&data->provider_driver);