From: Mathieu Desnoyers Date: Fri, 13 Nov 2009 04:39:02 +0000 (-0500) Subject: liblttctl: fix missing return value X-Git-Tag: 0.80~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=341bb0ddf95839d1dee7b799141f263808bbf029;p=ltt-control.git liblttctl: fix missing return value Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttctl/liblttctl.c b/liblttctl/liblttctl.c index e9f4f18..c88ece8 100644 --- a/liblttctl/liblttctl.c +++ b/liblttctl/liblttctl.c @@ -443,6 +443,7 @@ static int __lttctl_set_channel_enable(const char *name, const char *channel, return ret; } + int lttctl_set_channel_enable(const char *name, const char *channel, int enable) { @@ -639,6 +640,7 @@ static int __lttctl_set_channel_subbuf_size(const char *name, ret = lttctl_sendop(ctlfname, opstr); if (ret) fprintf(stderr, "Set channel's subbuf size failed\n"); + return ret; } int lttctl_set_channel_subbuf_size(const char *name, const char *channel, @@ -706,6 +708,7 @@ static int __lttctl_set_channel_switch_timer(const char *name, ret = lttctl_sendop(ctlfname, opstr); if (ret) fprintf(stderr, "Set channel's switch timer failed\n"); + return ret; } int lttctl_set_channel_switch_timer(const char *name, const char *channel,