X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fview.c;h=a13cb352510da0e3f2b60cc9a8c74f2b62f66870;hp=a8dcdd11f468d086d8e0ded84f0a308f3fa074fe;hb=8bf4946c164913124dc634eca8942c1f2c2fdd89;hpb=6dd26587e926671cdec2545b7d3db74cbd6a7cd8 diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index a8dcdd11f..a13cb3525 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -69,7 +69,7 @@ enum viewer_type { * NOTE: "lttv" is a shell command and it's not working for exec() family * functions so we might think of removing this wrapper or using bash. */ -static struct viewers { +static const struct viewers { const char *exec_name; enum viewer_type type; } viewers[] = { @@ -80,7 +80,7 @@ static struct viewers { /* Is the session we are trying to view is in live mode. */ static int session_live_mode; -static struct viewers *parse_options(void) +static const struct viewers *parse_options(void) { if (opt_viewer == NULL) { /* Default is babeltrace */ @@ -165,7 +165,6 @@ static char **alloc_argv_from_local_opts(const char **opts, size_t opts_len, char **argv; size_t size, mem_len; - /* Add one for the NULL terminating element. */ mem_len = opts_len + 1; if (session_live_mode) { @@ -208,7 +207,7 @@ static int spawn_viewer(const char *trace_path) int ret = 0; struct stat status; const char *viewer_bin = NULL; - struct viewers *viewer; + const struct viewers *viewer; char **argv = NULL; /* Check for --viewer options */