From: Gerhard Sittig Date: Fri, 7 Apr 2023 16:31:53 +0000 (+0200) Subject: decode: add 'const' decorator in hash item move helper routine X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=51cf9b2cbdb58001253e9921aff1a09acfa539e1;p=sigrok-cli.git decode: add 'const' decorator in hash item move helper routine Decorate the lookup key in move_hash_element() as const. --- diff --git a/decode.c b/decode.c index ac0e3e1..1a0747c 100644 --- a/decode.c +++ b/decode.c @@ -89,7 +89,7 @@ static int opts_to_gvar(struct srd_decoder *dec, GHashTable *hash, return ret; } -static int move_hash_element(GHashTable *src, GHashTable *dest, void *key) +static int move_hash_element(GHashTable *src, GHashTable *dest, const void *key) { void *orig_key, *value;