From: Francis Deslauriers Date: Thu, 2 Apr 2020 20:04:49 +0000 (-0400) Subject: lttng-view: clean-up: use singular form for type name X-Git-Tag: v2.13.0-rc1~681 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2436ad01db5c2539639e9e4c367bad7b2341c191;p=lttng-tools.git lttng-view: clean-up: use singular form for type name Signed-off-by: Francis Deslauriers Change-Id: Ibeb6363def3579761e9a5a4cb76f7c6ca22d6146 Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 1a9ad6c3a..232638963 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -58,7 +58,7 @@ enum viewer_type { VIEWER_USER_DEFINED = 2, }; -static const struct viewers { +static const struct viewer { const char *exec_name; enum viewer_type type; } viewers[] = { @@ -70,7 +70,7 @@ static const struct viewers { /* Is the session we are trying to view is in live mode. */ static int session_live_mode; -static const struct viewers *parse_options(void) +static const struct viewer *parse_options(void) { if (opt_viewer == NULL) { /* Default is babeltrace */ @@ -192,7 +192,7 @@ static int spawn_viewer(const char *trace_path) int ret = 0; struct stat status; const char *viewer_bin = NULL; - const struct viewers *viewer; + const struct viewer *viewer; char **argv = NULL; /* Check for --viewer options */