Refactoring: channel enable/disable using common type
[lttng-modules.git] / src / lttng-abi.c
index 7eafe2d09ff1403738ce00442ac18f458dd73606..d4760561d73469741f093d96003e2e3cf8020419 100644 (file)
@@ -2527,10 +2527,10 @@ old_ctx_end:
        }
        case LTTNG_KERNEL_ABI_OLD_ENABLE:
        case LTTNG_KERNEL_ABI_ENABLE:
-               return lttng_channel_enable(channel);
+               return lttng_channel_enable(&channel->parent);
        case LTTNG_KERNEL_ABI_OLD_DISABLE:
        case LTTNG_KERNEL_ABI_DISABLE:
-               return lttng_channel_disable(channel);
+               return lttng_channel_disable(&channel->parent);
        case LTTNG_KERNEL_ABI_SYSCALL_MASK:
                return lttng_channel_syscall_mask(channel,
                        (struct lttng_kernel_abi_syscall_mask __user *) arg);
This page took 0.023187 seconds and 4 git commands to generate.