From c950613098404c6438dd12578c6c791cd54bd901 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 11 Dec 2017 11:28:48 +0100 Subject: [PATCH] C comments --- input/drivers_joypad/udev_joypad.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/input/drivers_joypad/udev_joypad.c b/input/drivers_joypad/udev_joypad.c index 902367ee67..0bd8c0598e 100644 --- a/input/drivers_joypad/udev_joypad.c +++ b/input/drivers_joypad/udev_joypad.c @@ -532,7 +532,7 @@ static void udev_joypad_poll(void) } } -// Used for sorting devnodes to appear in the correct order +/* Used for sorting devnodes to appear in the correct order */ static int sort_devnodes(const void *a, const void *b) { const struct joypad_udev_entry *aa = a; @@ -589,8 +589,10 @@ static bool udev_joypad_init(void *data) } } - // Sort the udev entries by devnode name so that they are created in the proper order - qsort(sorted, sorted_count, sizeof(struct joypad_udev_entry), sort_devnodes); + /* Sort the udev entries by devnode name so that they are + * created in the proper order */ + qsort(sorted, sorted_count, + sizeof(struct joypad_udev_entry), sort_devnodes); for (i = 0; i < sorted_count; i++) {