projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb649a
)
Don't match driver for root element
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 9 Aug 2008 22:26:44 +0000
(
00:26
+0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 9 Aug 2008 22:26:44 +0000
(
00:26
+0200)
src/element.c
patch
|
blob
|
history
diff --git
a/src/element.c
b/src/element.c
index
7c892e6
..
2d4c5fb
100644
(file)
--- a/
src/element.c
+++ b/
src/element.c
@@
-325,6
+325,9
@@
static gint compare_priority(gconstpointer a, gconstpointer b)
static gboolean match_driver(struct connman_element *element,
struct connman_driver *driver)
{
+ if (element->type == CONNMAN_ELEMENT_TYPE_ROOT)
+ return FALSE;
+
if (element->type != driver->type &&
driver->type != CONNMAN_ELEMENT_TYPE_UNKNOWN)
return FALSE;