projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e7865f
)
refs_cmp: remove unneeded cast
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 15 Nov 2020 19:58:41 +0000
(20:58 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sun, 15 Nov 2020 19:58:41 +0000
(20:58 +0100)
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index f1dd745c2af59c3c1428a3bdba6a82083cfa7233..a263648cca3c36a769cc41649ddd3d14dab0d4cb 100644
(file)
--- 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;