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:
73b2b58
)
task: use g_hash_table_replace instead of insert function
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Tue, 17 Apr 2012 10:54:22 +0000
(13:54 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 17 Apr 2012 11:31:22 +0000
(13:31 +0200)
src/task.c
patch
|
blob
|
history
diff --git
a/src/task.c
b/src/task.c
index
8be3b25
..
9adc315
100644
(file)
--- 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;
}