diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-04-17 13:54:23 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-17 13:31:22 +0200 |
commit | 243443997b0f19635b50fdb0ace3e467856debd5 (patch) | |
tree | 90d7b625c52044bc6633edb55bd39b28d951b340 /src/nat.c | |
parent | 83f9f9a65be98aeff76b6f087b85ec65773b14dd (diff) | |
download | connman-243443997b0f19635b50fdb0ace3e467856debd5.tar.gz connman-243443997b0f19635b50fdb0ace3e467856debd5.tar.bz2 connman-243443997b0f19635b50fdb0ace3e467856debd5.zip |
nat: use g_hash_table_replace instead of insert function
Diffstat (limited to 'src/nat.c')
-rw-r--r-- | src/nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |