Introduction
Introduction Statistics Contact Development Disclaimer Help
No need for cast in qsort callback - noice - small file browser (mirror / fork …
git clone git://git.codemadness.org/noice
Log
Files
Refs
README
LICENSE
---
commit d909de605c133037b72b4cfbcd34e83b130aa55c
parent 98e06fc7399661c89b1eebdba0bcbb22ff706334
Author: sin <[email protected]>
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(-)
---
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;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.