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:09:21 +0000 (18:09 -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 0c944a73b7822d93bd2ca499f72bfb46ff2bd8a8..90c71c4230e63d9f39f2b75d03f6563bdcdff535 100644 (file)
@@ -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);
 
This page took 0.027459 seconds and 5 git commands to generate.