diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-08-06 13:18:28 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-08-06 13:18:28 +0200 |
commit | 3d9b54725779acf10173b15ae58e9805582f17e1 (patch) | |
tree | f272f5e393e3c37a59a6b43b68c3787850eb03f4 | |
parent | 19e4dc97c1518d6b545a6c90f1dba94e45a9cdd2 (diff) | |
download | ofono-3d9b54725779acf10173b15ae58e9805582f17e1.tar.bz2 |
udev: Sort devices by interface number and not device node
-rw-r--r-- | plugins/udevng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/udevng.c b/plugins/udevng.c index d125ff10..2e7f015c 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -325,7 +325,7 @@ static gint compare_device(gconstpointer a, gconstpointer b) const struct device_info *info1 = a; const struct device_info *info2 = b; - return g_strcmp0(info1->devnode, info2->devnode); + return g_strcmp0(info1->number, info2->number); } static void add_device(const char *syspath, const char *devname, |