summaryrefslogtreecommitdiff
path: root/src/task.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-04-17 13:54:22 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-17 13:31:22 +0200
commit83f9f9a65be98aeff76b6f087b85ec65773b14dd (patch)
tree601efd89c67156e6fde551329c19d14b553ec243 /src/task.c
parent73b2b585cf48b8f92561ba6859df8a9c605a060a (diff)
downloadconnman-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/task.c b/src/task.c
index 8be3b252..9adc3156 100644
--- a/src/task.c
+++ b/src/task.c
@@ -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;
}