This seems more representative of what this function does.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I78e4282a13048f4a35df4ddeae91b89969b73941
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* Is the session we are trying to view is in live mode. */
static int session_live_mode;
/* Is the session we are trying to view is in live mode. */
static int session_live_mode;
-static const struct viewer *parse_options(void)
+static const struct viewer *parse_viewer_option(void)
{
if (opt_viewer == NULL) {
{
if (opt_viewer == NULL) {
- /* Default is babeltrace */
+ /* Default is babeltrace2 */
return &(viewers[VIEWER_BABELTRACE2]);
}
return &(viewers[VIEWER_BABELTRACE2]);
}
const struct viewer *viewer;
char **argv = NULL;
const struct viewer *viewer;
char **argv = NULL;
- /* Check for --viewer options */
- viewer = parse_options();
+ /* Check for --viewer option. */
+ viewer = parse_viewer_option();
if (viewer == NULL) {
ret = CMD_ERROR;
goto error;
if (viewer == NULL) {
ret = CMD_ERROR;
goto error;