]> Sergey Matveev's repositories - nnn.git/commitdiff
No need for cast in qsort callback
authorsin <sin@2f30.org>
Mon, 8 Feb 2016 16:44:39 +0000 (16:44 +0000)
committersin <sin@2f30.org>
Mon, 8 Feb 2016 16:46:14 +0000 (16:46 +0000)
noice.c

diff --git a/noice.c b/noice.c
index 6194062cef6373fef0b416a15193e2b946fd5776..d1b3b82f6592ac5f849b0bbb10943baa3defbee3 100644 (file)
--- 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;