refs_cmp: remove unneeded cast - stagit-gopher - A git gopher frontend. (mirror)
 (HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a4d8cc9e561103401fde97b8d79179763b0ba2b4
 (DIR) parent ee1e685d9d6391f5eba3c539462c76623d5b50de
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 15 Nov 2020 21:22:21 +0100
       
       refs_cmp: remove unneeded cast
       
       Diffstat:
         M stagit-gopher.c                     |       3 +--
       
       1 file changed, 1 insertion(+), 2 deletions(-)
       ---
 (DIR) diff --git a/stagit-gopher.c b/stagit-gopher.c
       @@ -299,8 +299,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;