|
|
refs_cmp: remove unneeded cast - stagit-gopher - static git page generator for gopher |
|
|
 |
git clone git://git.codemadness.org/stagit-gopher (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit a4d8cc9e561103401fde97b8d79179763b0ba2b4 |
|
|
 |
parent ee1e685d9d6391f5eba3c539462c76623d5b50de |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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; |
|
|
|
|
|