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=2f51948cefd641a8cdf0fd00777b109720cafa6e 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 0c944a73b..90c71c423 100644 --- a/src/bin/lttng-sessiond/ust-registry.c +++ b/src/bin/lttng-sessiond/ust-registry.c @@ -90,7 +90,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);