aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2020-11-15 20:58:41 +0100
committerHiltjo Posthuma <[email protected]>2020-11-15 20:58:41 +0100
commit9467f347a2224ac95b96ef5c74d50a4e2aad5241 (patch)
tree4c7535b275fc719ad85eca6d4f0dbc8d10bc83aa
parent3e7865f8f9ef87f622a7a94e7ae70355753ee66a (diff)
downloadstagit-9467f347a2224ac95b96ef5c74d50a4e2aad5241.tar.gz
stagit-9467f347a2224ac95b96ef5c74d50a4e2aad5241.zip
refs_cmp: remove unneeded cast
-rw-r--r--stagit.c3
1 files changed, 1 insertions, 2 deletions
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;