From 2f51948cefd641a8cdf0fd00777b109720cafa6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 30 May 2018 18:09:19 -0400 Subject: [PATCH] Fix: warning due to hash_key_str() being not const-correct MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-sessiond/ust-registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1