This email list is read-only.  Emails sent to this list will be discarded
----------------------------------
 src/element.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

New commits:
commit bff52bdff31ac9182a9abcbfac63350cd5ae67de
Author: Marcel Holtmann <[EMAIL PROTECTED]>
Date:   Sun Aug 10 00:26:44 2008 +0200

    Don't match driver for root element


Diff in this email is a maximum of 400 lines.
diff --git a/src/element.c b/src/element.c
index 7c892e6..2d4c5fb 100644
--- 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;
_______________________________________________
Commits mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/commits

Reply via email to