Avoid the following compiler warning:
wmifs.c:638:28: warning: variable ‘ppp_old’ set but not used 
[-Wunused-but-set-variable]
  struct ppp_stats ppp_cur, ppp_old;
                            ^
---
 wmifs/wmifs/wmifs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/wmifs/wmifs/wmifs.c b/wmifs/wmifs/wmifs.c
index a0abaff..1487878 100644
--- a/wmifs/wmifs/wmifs.c
+++ b/wmifs/wmifs/wmifs.c
@@ -635,7 +635,7 @@ int get_statistics(char *devname, long *ip, long *op, long 
*is, long *os)
        int                                     input, output;
        int                                     i;
        int                                     found;
-       struct ppp_stats        ppp_cur, ppp_old;
+       struct ppp_stats        ppp_cur;
        static int                      ppp_opened;
 
 
@@ -647,7 +647,6 @@ int get_statistics(char *devname, long *ip, long *op, long 
*is, long *os)
                        if (ppp_h < 0)
                                return -1;
                        get_ppp_stats(&ppp_cur);
-                       ppp_old = ppp_cur;
                        ppp_opened = 1;
                }
 
-- 
1.9.1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to