wmifs: Fix "variable 'ppp_old" set but not used" compiler warning.
Based on a patch from the Debian package [1]. [1] https://sources.debian.net/src/wmifs/1.4-2/debian/patches/fix-compiler-warning.patch/
This commit is contained in:
		
							parent
							
								
									e913422bb8
								
							
						
					
					
						commit
						abe2c4431a
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -638,7 +638,7 @@ int get_statistics(char *devname, long *ip, long *op, long *is, long *os)
 | 
				
			||||||
	int					input, output;
 | 
						int					input, output;
 | 
				
			||||||
	int					i;
 | 
						int					i;
 | 
				
			||||||
	int					found;
 | 
						int					found;
 | 
				
			||||||
	struct ppp_stats	ppp_cur, ppp_old;
 | 
						struct ppp_stats	ppp_cur;
 | 
				
			||||||
	static int			ppp_opened;
 | 
						static int			ppp_opened;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -650,7 +650,6 @@ int get_statistics(char *devname, long *ip, long *op, long *is, long *os)
 | 
				
			||||||
			if (ppp_h < 0)
 | 
								if (ppp_h < 0)
 | 
				
			||||||
				return -1;
 | 
									return -1;
 | 
				
			||||||
			get_ppp_stats(&ppp_cur);
 | 
								get_ppp_stats(&ppp_cur);
 | 
				
			||||||
			ppp_old = ppp_cur;
 | 
					 | 
				
			||||||
			ppp_opened = 1;
 | 
								ppp_opened = 1;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue