Clean-up: sessiond: make some accesses to conditions const
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index 9c2f61ad7f2232fd7190e5df37ffc5a60f36118e..a453fd8b705537ba8908e729517c20b408ef2951 100644 (file)
@@ -497,7 +497,7 @@ enum lttng_error_code trace_kernel_create_event_notifier_rule(
 
        assert(event_notifier_rule);
 
-       condition = lttng_trigger_get_condition(trigger);
+       condition = lttng_trigger_get_const_condition(trigger);
        assert(condition);
 
        condition_type = lttng_condition_get_type(condition);
@@ -688,7 +688,7 @@ enum lttng_error_code trace_kernel_init_event_notifier_from_event_rule(
                ret_code = LTTNG_OK;
                break;
        }
-       case LTTNG_EVENT_RULE_TYPE_KRETPROBE:
+       case LTTNG_EVENT_RULE_TYPE_KERNEL_FUNCTION:
        default:
                abort();
                break;
This page took 0.022807 seconds and 4 git commands to generate.