From: Antoine Busque Date: Tue, 1 Sep 2015 22:53:57 +0000 (-0400) Subject: Fix: correct mismatched function signatures X-Git-Tag: v2.6.1~20 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=b88e0132f5c04425501276f35062c86ff2312cf2;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 4540cc8cc..4250bfdb9 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -76,7 +76,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 @@ -451,7 +451,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. */