Extend the rotation API to provide network trace archive locations
[lttng-tools.git] / src / bin / lttng-sessiond / ust-registry.c
index 88d66317001da76386794acaaef45ed62678b819..ed830b60821cc67154879c629655f48e7b62bf10 100644 (file)
@@ -62,10 +62,10 @@ no_match:
        return 0;
 }
 
-static unsigned long ht_hash_event(void *_key, unsigned long seed)
+static unsigned long ht_hash_event(const void *_key, unsigned long seed)
 {
        uint64_t xored_key;
-       struct ust_registry_event *key = _key;
+       const struct ust_registry_event *key = _key;
 
        assert(key);
 
@@ -920,7 +920,7 @@ int ust_registry_session_init(struct ust_registry_session **sessionp,
 
        session->enums = lttng_ht_new(0, LTTNG_HT_TYPE_STRING);
        if (!session->enums) {
-               ret = -ENOMEM;
+               ERR("Failed to create enums hash table");
                goto error;
        }
        /* hash/match functions are specified at call site. */
This page took 0.023934 seconds and 4 git commands to generate.