lifecycle: handle_commands_for_phase(): drop unused lifname variable
This commit is contained in:
parent
be00984946
commit
08805f7de3
1 changed files with 2 additions and 4 deletions
|
@ -24,12 +24,10 @@
|
||||||
#include "libifupdown/tokenize.h"
|
#include "libifupdown/tokenize.h"
|
||||||
|
|
||||||
static bool
|
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;
|
struct lif_node *iter;
|
||||||
|
|
||||||
(void) lifname;
|
|
||||||
|
|
||||||
LIF_DICT_FOREACH(iter, &iface->vars)
|
LIF_DICT_FOREACH(iter, &iface->vars)
|
||||||
{
|
{
|
||||||
struct lif_dict_entry *entry = iter->data;
|
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))
|
if (!handle_executors_for_phase(opts, envp, iface))
|
||||||
goto handle_error;
|
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;
|
goto handle_error;
|
||||||
|
|
||||||
/* we should do error handling here, but ifupdown1 doesn't */
|
/* we should do error handling here, but ifupdown1 doesn't */
|
||||||
|
|
Loading…
Reference in a new issue