Prepare for '-Wunused-parameter'
[lttng-tools.git] / src / bin / lttng / commands / list_triggers.cpp
index f7798b15033f6285ddda88ea06fca61fd9be188e..e6860380f2a8db0bbbe0cd99c6c1e585fa2200b5 100644 (file)
@@ -748,7 +748,6 @@ static void print_condition_event_rule_matches(
 }
 
 static void print_action_errors(const struct lttng_trigger *trigger,
-               const struct lttng_action *action,
                const uint64_t *action_path_indexes,
                size_t action_path_length)
 {
@@ -963,7 +962,7 @@ void print_one_action(const struct lttng_trigger *trigger,
        }
 
        MSG("");
-       print_action_errors(trigger, action, action_path_indexes,
+       print_action_errors(trigger, action_path_indexes,
                        action_path_length);
 
 end:
@@ -1335,9 +1334,10 @@ int cmd_list_triggers(int argc, const char **argv)
        while (true) {
                enum parse_next_item_status status;
 
-               status = parse_next_item(argpar_iter, &argpar_item, argv,
-                       true, NULL);
-               if (status == PARSE_NEXT_ITEM_STATUS_ERROR) {
+               status = parse_next_item(argpar_iter, &argpar_item, 1, argv,
+                       true, NULL, NULL);
+               if (status == PARSE_NEXT_ITEM_STATUS_ERROR ||
+                               status == PARSE_NEXT_ITEM_STATUS_ERROR_MEMORY) {
                        goto error;
                } else if (status == PARSE_NEXT_ITEM_STATUS_END) {
                        break;
This page took 0.023615 seconds and 4 git commands to generate.