summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-11-13 14:52:55 +0100
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-11-24 01:27:22 +0100
commitfbd7ef6fb88088e6253512f8e8906e2bfd56e4f7 (patch)
tree0299332372faa2024516b47814db512345ea95cd
parent497a30b22bd05bc0d9b3de6c8ff53a96b3a58817 (diff)
Use alphasort instead of versionsort for scandir
There main reason for this change is that versionsort is not widely supported at the moment (for example, it is not present in FreeBSD and the manual page for GNU C library scandir documents versionsort as GNU extension).
-rw-r--r--evtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evtest.c b/evtest.c
index 5f6bed6..15dbe81 100644
--- a/evtest.c
+++ b/evtest.c
@@ -881,7 +881,7 @@ static char* scan_devices(void)
char *filename;
int max_device = 0;
- ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort);
+ ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort);
if (ndev <= 0)
return NULL;