diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-04-17 13:54:22 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-17 13:31:22 +0200 |
commit | 83f9f9a65be98aeff76b6f087b85ec65773b14dd (patch) | |
tree | 601efd89c67156e6fde551329c19d14b553ec243 /src/task.c | |
parent | 73b2b585cf48b8f92561ba6859df8a9c605a060a (diff) | |
download | connman-83f9f9a65be98aeff76b6f087b85ec65773b14dd.tar.gz connman-83f9f9a65be98aeff76b6f087b85ec65773b14dd.tar.bz2 connman-83f9f9a65be98aeff76b6f087b85ec65773b14dd.zip |
task: use g_hash_table_replace instead of insert function
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -240,7 +240,7 @@ int connman_task_set_notify(struct connman_task *task, const char *member, notify->func = function; notify->data = user_data; - g_hash_table_insert(task->notify, g_strdup(member), notify); + g_hash_table_replace(task->notify, g_strdup(member), notify); return 0; } |