No need for cast in qsort callback - noice - small file browser (mirror / fork from 2f30.org)
(HTM) git clone git://git.codemadness.org/noice
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d909de605c133037b72b4cfbcd34e83b130aa55c
(DIR) parent 98e06fc7399661c89b1eebdba0bcbb22ff706334
(HTM) Author: sin <sin@2f30.org>
Date: Mon, 8 Feb 2016 16:44:39 +0000
No need for cast in qsort callback
Diffstat:
M noice.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
(DIR) diff --git a/noice.c b/noice.c
@@ -251,10 +251,7 @@ visible(regex_t *regex, char *file)
int
entrycmp(const void *va, const void *vb)
{
- const struct entry *a, *b;
-
- a = (struct entry *)va;
- b = (struct entry *)vb;
+ const struct entry *a = va, *b = vb;
if (mtimeorder)
return b->t - a->t;