From: Okhuomon Ajayi Date: Thu, 09 Oct 2025 21:57:20 GMT Subject: [PATCH] [Outreachy] patch-ids: fix const correctness Message-ID: <20251009215737.1196464-1-okhuomonajayi54@gmail.com> In-Reply-To: <20251009214445.1190274-1-okhuomonajayi54@gmail.com> Fix const correctness warning in patch_id_neq() in patch-ids.c. Changes in v2: - Removed NEEDSWORK comment --- patch-ids.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patch-ids.c b/patch-ids.c index a5683b462c..b6b808332f 100644 --- a/patch-ids.c +++ b/patch-ids.c @@ -41,8 +41,8 @@ static int patch_id_neq(const void *cmpfn_data, const struct hashmap_entry *entry_or_key, const void *keydata UNUSED) { - /* NEEDSWORK: const correctness? */ - struct diff_options *opt = (void *)cmpfn_data; + + const struct diff_options *opt = (void *)cmpfn_data; struct patch_id *a, *b; a = container_of(eptr, struct patch_id, ent); -- 2.43.0