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:
2599645
)
technology: Use allocated index for rfkill hash tables keys
author
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 6 Oct 2010 16:01:31 +0000
(18:01 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 7 Oct 2010 18:07:43 +0000
(20:07 +0200)
src/technology.c
patch
|
blob
|
history
diff --git
a/src/technology.c
b/src/technology.c
index
b255236
..
a8f994b
100644
(file)
--- a/
src/technology.c
+++ b/
src/technology.c
@@
-626,9
+626,9
@@
int __connman_technology_add_rfkill(unsigned int index,
rfkill->softblock = softblock;
rfkill->hardblock = hardblock;
- g_hash_table_replace(rfkill_table, &index, technology);
+ g_hash_table_replace(rfkill_table, &
rfkill->
index, technology);
- g_hash_table_replace(technology->rfkill_list, &index, rfkill);
+ g_hash_table_replace(technology->rfkill_list, &
rfkill->
index, rfkill);
return 0;
}