mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 15:50:26 +01:00
dispatcher: remove local @iface variable from handle_action()
This commit is contained in:
parent
38fa197bab
commit
199754a845
1 changed files with 2 additions and 5 deletions
|
|
@ -622,7 +622,6 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
|
|||
GSList *iter;
|
||||
Request *request;
|
||||
char **p;
|
||||
char *iface = NULL;
|
||||
guint i, num_nowait = 0;
|
||||
|
||||
sorted_scripts = find_scripts (str_action);
|
||||
|
|
@ -652,18 +651,16 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
|
|||
vpn_ip_iface,
|
||||
vpn_ip4_props,
|
||||
vpn_ip6_props,
|
||||
&iface);
|
||||
&request->iface);
|
||||
|
||||
if (request->debug) {
|
||||
g_message ("------------ Action ID %p '%s' Interface %s Environment ------------",
|
||||
context, str_action, iface ? iface : "(none)");
|
||||
context, str_action, request->iface ? request->iface : "(none)");
|
||||
for (p = request->envp; *p; p++)
|
||||
g_message (" %s", *p);
|
||||
g_message ("\n");
|
||||
}
|
||||
|
||||
request->iface = iface;
|
||||
|
||||
request->scripts = g_ptr_array_new_full (5, script_info_free);
|
||||
for (iter = sorted_scripts; iter; iter = g_slist_next (iter)) {
|
||||
ScriptInfo *s;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue