From: Jérémie Galarneau Date: Wed, 30 May 2018 22:09:19 +0000 (-0400) Subject: Fix: warning due to hash_key_str() being not const-correct X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=0cf422e20830bdd1b826f35bbc8cb4598c11c5a1 Fix: warning due to hash_key_str() being not const-correct Hash table utils do not enforce const-correct in lttng-tools prior to 2.11. This results in a warning when pasing a const argument to those utilities. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-registry.c b/src/bin/lttng-sessiond/ust-registry.c index d4edb207a..37049b525 100644 --- a/src/bin/lttng-sessiond/ust-registry.c +++ b/src/bin/lttng-sessiond/ust-registry.c @@ -88,7 +88,7 @@ no_match: static unsigned long ht_hash_event(void *_key, unsigned long seed) { uint64_t hashed_key; - const struct ust_registry_event *key = _key; + struct ust_registry_event *key = _key; assert(key);