From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 04DE41F59D; Sat, 20 Aug 2022 21:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1661031324; bh=XjjTwLLPpYSm2asmw0imjuepcqM97T6BFebh1y+9kBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yj4W+zbfpYqfs+XzWnhua6zC7EaBfBijYPT72L4bVJi+SRM01yKObPWQK2A7KqunB +Prx1AANaDvwkXcebwFo/cITuZTPm8SPgk+788tC446ZZDQ2TurgQ6zBEmLViYawwC lN2r9RI9hWaB9U6Ics2NtX/CARM4PzRyvm18q0XY= From: Eric Wong To: Cc: Sam Saffron Subject: [PATCH 1/3] constify arg for totals_add_rcu Date: Sat, 20 Aug 2022 21:35:21 +0000 Message-Id: <20220820213523.18504-2-e@80x24.org> In-Reply-To: <20220820213523.18504-1-e@80x24.org> References: <20220820213523.18504-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's not modified by that function, so constify it for ease-of-reading and review. --- ext/mwrap/mwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;