From: Tomasz Bursztyka Date: Tue, 17 Apr 2012 10:54:23 +0000 (+0300) Subject: nat: use g_hash_table_replace instead of insert function X-Git-Tag: 0.80~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=243443997b0f19635b50fdb0ace3e467856debd5;p=platform%2Fupstream%2Fconnman.git nat: use g_hash_table_replace instead of insert function --- diff --git a/src/nat.c b/src/nat.c index 7c54541b..e17a3f88 100644 --- a/src/nat.c +++ b/src/nat.c @@ -135,7 +135,7 @@ int __connman_nat_enable(const char *name, const char *address, nat->address = g_strdup(address); nat->prefixlen = prefixlen; - g_hash_table_insert(nat_hash, g_strdup(name), nat); + g_hash_table_replace(nat_hash, g_strdup(name), nat); return enable_nat(nat); }