diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-13 14:52:55 +0100 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-24 01:27:22 +0100 |
commit | fbd7ef6fb88088e6253512f8e8906e2bfd56e4f7 (patch) | |
tree | 0299332372faa2024516b47814db512345ea95cd | |
parent | 497a30b22bd05bc0d9b3de6c8ff53a96b3a58817 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |