From: Hiltjo Posthuma Date: Sun, 15 Nov 2020 19:58:41 +0000 (+0100) Subject: refs_cmp: remove unneeded cast X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=9467f347a2224ac95b96ef5c74d50a4e2aad5241;p=forks%2Fstagit.git refs_cmp: remove unneeded cast --- diff --git a/stagit.c b/stagit.c index f1dd745..a263648 100644 --- 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;