SMOLNET PORTAL home about changes
refs_cmp: remove unneeded cast - stagit - static git page generator
(URL) git clone git://git.codemadness.org/stagit (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9467f347a2224ac95b96ef5c74d50a4e2aad5241
(DIR) parent 3e7865f8f9ef87f622a7a94e7ae70355753ee66a
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Sun, 15 Nov 2020 20:58:41 +0100
refs_cmp: remove unneeded cast
Diffstat:
M stagit.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
(DIR) diff --git a/stagit.c b/stagit.c
@@ -253,8 +253,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;
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/stagit/commit/9467f347a222...
Content-Typeapplication/gopher-menu; charset=utf-8