]> sigrok.org Git - sigrok-cli.git/commitdiff
decode: add 'const' decorator in hash item move helper routine
authorGerhard Sittig <redacted>
Fri, 7 Apr 2023 16:31:53 +0000 (18:31 +0200)
committerGerhard Sittig <redacted>
Sun, 9 Apr 2023 22:18:50 +0000 (00:18 +0200)
Decorate the lookup key in move_hash_element() as const.

decode.c

index ac0e3e17cc283e51d16a0aa8e7c21be846faf657..1a0747c9023255ee5d0aed89cace6d983ae90d1d 100644 (file)
--- 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;