projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9faff
)
vpn: use g_hash_table_replace instead of insert function
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Tue, 17 Apr 2012 10:54:21 +0000
(13:54 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 17 Apr 2012 11:31:22 +0000
(13:31 +0200)
plugins/vpn.c
patch
|
blob
|
history
diff --git
a/plugins/vpn.c
b/plugins/vpn.c
index
e41a374
..
e8b7041
100644
(file)
--- 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);