From d1edd8a82868dafce6d61600c87ac916d7f73702 Mon Sep 17 00:00:00 2001 From: Antoine Busque Date: Tue, 1 Sep 2015 18:53:57 -0400 Subject: [PATCH] Fix: correct mismatched function signatures MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng/commands/create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.34.1