Introduction
Introduction Statistics Contact Development Disclaimer Help
refs_cmp: remove unneeded cast - stagit-gopher - static git page generator for …
git clone git://git.codemadness.org/stagit-gopher
Log
Files
Refs
README
LICENSE
---
commit a4d8cc9e561103401fde97b8d79179763b0ba2b4
parent ee1e685d9d6391f5eba3c539462c76623d5b50de
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 15 Nov 2020 21:22:21 +0100
refs_cmp: remove unneeded cast
Diffstat:
M stagit-gopher.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/stagit-gopher.c b/stagit-gopher.c
@@ -299,8 +299,7 @@ err:
int
refs_cmp(const void *v1, const void *v2)
{
- struct referenceinfo *r1 = (struct referenceinfo *)v1;
- struct referenceinfo *r2 = (struct referenceinfo *)v2;
+ const struct referenceinfo *r1 = v1, *r2 = v2;
time_t t1, t2;
int r;
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.