aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2016-02-08 16:44:39 +0000
committersin <sin@2f30.org>2016-02-08 16:46:14 +0000
commitd909de605c133037b72b4cfbcd34e83b130aa55c (patch)
treed7d64419dd33bcab7a65fb488b692da926aa823f /noice.c
parent98e06fc7399661c89b1eebdba0bcbb22ff706334 (diff)
downloadnoice-d909de605c133037b72b4cfbcd34e83b130aa55c.tar.gz
No need for cast in qsort callback
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/noice.c b/noice.c
index 6194062..d1b3b82 100644
--- 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;
Un proyecto texto-plano.xyz