clang-tidy: apply suggested fixes
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-syscall.cpp
index 06f4ab1fb991a0ca0b81c6ff2dd1fd5b78a224ba..42eb0e7eed707a9c874a7e1b9f07716de67aefb5 100644 (file)
@@ -165,7 +165,7 @@ static void destroy_syscall_ht(struct lttng_ht *ht)
        }
 
        {
-               lttng::urcu::read_lock_guard read_lock;
+               const lttng::urcu::read_lock_guard read_lock;
 
                cds_lfht_for_each_entry (ht->ht, &iter.iter, ksyscall, node.node) {
                        int ret;
@@ -313,7 +313,7 @@ ssize_t syscall_table_list(struct lttng_event **_events)
                }
 
                {
-                       lttng::urcu::read_lock_guard read_lock;
+                       const lttng::urcu::read_lock_guard read_lock;
                        struct syscall *ksyscall;
 
                        ksyscall = lookup_syscall(syscalls_ht, syscall_table[i].name);
This page took 0.024973 seconds and 4 git commands to generate.