Prepare for '-Wmissing-field-initializers'
[lttng-tools.git] / src / bin / lttng / commands / snapshot.cpp
index 8e19fa3d86f40f0bca00996793ed15cbab72081c..a5cbbfe759f5c16c25ea0a87bf8789a8e9627576 100644 (file)
@@ -60,7 +60,7 @@ static struct poptOption snapshot_opts[] = {
        {"name",         'n', POPT_ARG_STRING, &opt_output_name, 0, 0, 0},
        {"max-size",     'm', POPT_ARG_STRING, 0, OPT_MAX_SIZE, 0, 0},
        {"list-options",   0, POPT_ARG_NONE, NULL, OPT_LIST_OPTIONS, NULL, NULL},
-       {"list-commands",  0, POPT_ARG_NONE, NULL, OPT_LIST_COMMANDS},
+       {"list-commands",  0, POPT_ARG_NONE, NULL, OPT_LIST_COMMANDS, NULL, NULL},
        {0, 0, 0, 0, 0, 0, 0}
 };
 
@@ -384,7 +384,8 @@ end:
        return ret;
 }
 
-static int cmd_list_output(int argc, const char **argv)
+static int cmd_list_output(int argc __attribute__((unused)),
+               const char **argv __attribute__((unused)))
 {
        int ret;
 
@@ -425,8 +426,8 @@ static int record(const char *url)
        }
 
        if (lttng_opt_mi) {
-               ret = mi_lttng_snapshot_record(writer, current_session_name, url,
-                               opt_ctrl_url, opt_data_url);
+               ret = mi_lttng_snapshot_record(writer, url, opt_ctrl_url,
+                               opt_data_url);
                if (ret) {
                        ret = CMD_ERROR;
                }
This page took 0.024383 seconds and 4 git commands to generate.