Fix: userspace probe accessors are not const-correct
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index dcb1bd647b9a0a622b6cbd39c94979d1e0d30e1a..b9d03a72e002ca0042764a877f0ae556e87f1faa 100644 (file)
@@ -328,8 +328,8 @@ enum lttng_error_code trace_kernel_create_event(
                break;
        case LTTNG_EVENT_USERSPACE_PROBE:
        {
                break;
        case LTTNG_EVENT_USERSPACE_PROBE:
        {
-               struct lttng_userspace_probe_location* location = NULL;
-               struct lttng_userspace_probe_location_lookup_method *lookup = NULL;
+               const struct lttng_userspace_probe_location* location = NULL;
+               const struct lttng_userspace_probe_location_lookup_method *lookup = NULL;
 
                location = lttng_event_get_userspace_probe_location(ev);
                if (!location) {
 
                location = lttng_event_get_userspace_probe_location(ev);
                if (!location) {
This page took 0.024027 seconds and 5 git commands to generate.