about summary refs log tree commit homepage
path: root/ext/mwrap/mwrap.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-08-20 21:35:21 +0000
committerEric Wong <mwrap-public@80x24.org>2022-08-22 17:11:39 +0000
commita90e237d93256ded3088c83520683fc5835da72d (patch)
tree87d86145d3c49f07d3a70483e75e1614c9df5ae1 /ext/mwrap/mwrap.c
parent32c9a817cab2e28534de62ff62c4686b520fb3fe (diff)
downloadmwrap-a90e237d93256ded3088c83520683fc5835da72d.tar.gz
It's not modified by that function, so constify it for
ease-of-reading and review.
Diffstat (limited to 'ext/mwrap/mwrap.c')
-rw-r--r--ext/mwrap/mwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mwrap/mwrap.c b/ext/mwrap/mwrap.c
index 477b1cb..8592ea7 100644
--- a/ext/mwrap/mwrap.c
+++ b/ext/mwrap/mwrap.c
@@ -367,7 +367,7 @@ acc_stddev(const struct acc *acc)
         return DBL2NUM(acc_stddev_dbl(acc));
 }
 
-static struct src_loc *totals_add_rcu(struct src_loc *k)
+static struct src_loc *totals_add_rcu(const struct src_loc *k)
 {
         struct cds_lfht_iter iter;
         struct cds_lfht_node *cur;