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" | ||||
| 
 | ||||
| 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 */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue