stagit

refs_cmp: remove unneeded cast

Hiltjo Posthuma contact@arjunchoudhary.com

commit: b859321 parent: 989aaa9
1 files changed, 1 insertions(+), 2 deletions(-)
Mstagit.c+1-2
M · stagit.c +1, -2
 1@@ -253,8 +253,7 @@ err:
 2 int
 3 refs_cmp(const void *v1, const void *v2)
 4 {
 5-	struct referenceinfo *r1 = (struct referenceinfo *)v1;
 6-	struct referenceinfo *r2 = (struct referenceinfo *)v2;
 7+	const struct referenceinfo *r1 = v1, *r2 = v2;
 8 	time_t t1, t2;
 9 	int r;
10