From: Antoine Busque Date: Tue, 1 Sep 2015 22:53:57 +0000 (-0400) Subject: Fix: correct mismatched function signatures X-Git-Tag: v2.8.0-rc1~380 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d1edd8a82868dafce6d61600c87ac916d7f73702;p=lttng-tools.git Fix: correct mismatched function signatures The extern declaration of `_lttng_create_session_ext` in `create.c` had a superfluous `live_timer` parameter not present in the actual function definition in `lttng_ctl.c`. The -1 value with which it was called was therefore unused. Signed-off-by: Antoine Busque Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 19c560272..a7d327fbc 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -81,7 +81,7 @@ static struct poptOption long_options[] = { * why this declaration exists and used ONLY in for this command. */ extern int _lttng_create_session_ext(const char *name, const char *url, - const char *datetime, int live_timer); + const char *datetime); /* * usage @@ -460,7 +460,7 @@ static int create_session(void) } ret = lttng_create_session_live(session_name, url, opt_live_timer); } else { - ret = _lttng_create_session_ext(session_name, url, datetime, -1); + ret = _lttng_create_session_ext(session_name, url, datetime); } if (ret < 0) { /* Don't set ret so lttng can interpret the sessiond error. */