From: Simon Marchi Date: Wed, 31 Mar 2021 19:02:58 +0000 (-0400) Subject: Clean-up: lttng-crash: prepend `the_` to input_path global variable X-Git-Tag: v2.13.0-rc1~124 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=40b4fee74be13d3941e80f1d1161e009f0e59392;ds=sidebyside Clean-up: lttng-crash: prepend `the_` to input_path global variable ... to avoid clashing with a function parameter name. Change-Id: I96ca04576b4cc18adff7e5e19483d4fb74a7c669 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-crash/lttng-crash.c b/src/bin/lttng-crash/lttng-crash.c index 7f1f52803..a4b6a93f8 100644 --- a/src/bin/lttng-crash/lttng-crash.c +++ b/src/bin/lttng-crash/lttng-crash.c @@ -183,7 +183,7 @@ static const char *progname; static char *opt_viewer_path = NULL; static char *opt_output_path = NULL; -static char *input_path; +static char *the_input_path; int lttng_opt_quiet, lttng_opt_verbose, lttng_opt_mi; @@ -300,7 +300,7 @@ static int parse_args(int argc, char **argv) goto error; } - input_path = argv[optind]; + the_input_path = argv[optind]; end: return ret; @@ -1244,7 +1244,7 @@ int main(int argc, char *argv[]) } } - ret = extract_trace_recursive(output_path, input_path); + ret = extract_trace_recursive(output_path, the_input_path); if (ret < 0) { has_warning = true; goto end;