Fix: warning due to hash_key_str() being not const-correct
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 May 2018 22:09:19 +0000 (18:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 May 2018 22:11:46 +0000 (18:11 -0400)
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 <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-registry.c

index d4edb207afc18ebdb2daebcea130715675bf2fce..37049b525559585ce7e2aed4a8f13f8b6fddb036 100644 (file)
@@ -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);
 
This page took 0.027424 seconds and 5 git commands to generate.