[PATCH evtest] Use versionsort instead of alphasort

Peter Hutterer peter.hutterer at who-t.net
Thu May 30 22:46:02 PDT 2013


Having /dev/input/event10 sort after /dev/input/event9 almost makes me think
the future is here.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 evtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evtest.c b/evtest.c
index 4d60a3c..acca753 100644
--- a/evtest.c
+++ b/evtest.c
@@ -643,7 +643,7 @@ static char* scan_devices(void)
 	int i, ndev, devnum;
 	char *filename;
 
-	ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort);
+	ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort);
 	if (ndev <= 0)
 		return NULL;
 
-- 
1.8.2.1



More information about the xorg-devel mailing list