From 08805f7de3bf64e611daefb25fae0c05645abd81 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 26 Jul 2020 03:39:58 -0600 Subject: [PATCH] lifecycle: handle_commands_for_phase(): drop unused lifname variable --- libifupdown/lifecycle.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index 0ef6fd3..494d5cb 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -24,12 +24,10 @@ #include "libifupdown/tokenize.h" static bool -handle_commands_for_phase(const struct lif_execute_opts *opts, char *const envp[], struct lif_interface *iface, const char *lifname, const char *phase) +handle_commands_for_phase(const struct lif_execute_opts *opts, char *const envp[], struct lif_interface *iface, const char *phase) { struct lif_node *iter; - (void) lifname; - LIF_DICT_FOREACH(iter, &iface->vars) { struct lif_dict_entry *entry = iter->data; @@ -146,7 +144,7 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac if (!handle_executors_for_phase(opts, envp, iface)) goto handle_error; - if (!handle_commands_for_phase(opts, envp, iface, lifname, phase)) + if (!handle_commands_for_phase(opts, envp, iface, phase)) goto handle_error; /* we should do error handling here, but ifupdown1 doesn't */