'struct iflist' and 'struct iftab' are used in ifstats.c only,
so move it there.
Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/ifstats.c | 29 +++++++++++++++++++++++++++++
src/ifstats.h | 29 -----------------------------
2 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/ifstats.c b/src/ifstats.c
index a06d009..b81de1b 100644
--- a/src/ifstats.c
+++ b/src/ifstats.c
@@ -31,6 +31,35 @@ ifstats.c - the interface statistics module
#define SCROLLUP 0
#define SCROLLDOWN 1
+struct iflist {
+ char ifname[IFNAMSIZ];
+ int ifindex;
+ unsigned int encap;
+ unsigned long long iptotal;
+ unsigned long long ip6total;
+ unsigned long badtotal;
+ unsigned long long noniptotal;
+ unsigned long long total;
+ unsigned int spanbr;
+ unsigned long br;
+ float rate;
+ float peakrate;
+ unsigned int index;
+ struct iflist *prev_entry;
+ struct iflist *next_entry;
+};
+
+struct iftab {
+ struct iflist *head;
+ struct iflist *tail;
+ struct iflist *firstvisible;
+ struct iflist *lastvisible;
+ WINDOW *borderwin;
+ PANEL *borderpanel;
+ WINDOW *statwin;
+ PANEL *statpanel;
+};
+
extern int exitloop;
extern int daemonized;
diff --git a/src/ifstats.h b/src/ifstats.h
index 0fd1ed3..ce3800f 100644
--- a/src/ifstats.h
+++ b/src/ifstats.h
@@ -7,35 +7,6 @@ ifstats.h - structure definitions for interface counts
***/
-struct iflist {
- char ifname[IFNAMSIZ];
- int ifindex;
- unsigned int encap;
- unsigned long long iptotal;
- unsigned long long ip6total;
- unsigned long badtotal;
- unsigned long long noniptotal;
- unsigned long long total;
- unsigned int spanbr;
- unsigned long br;
- float rate;
- float peakrate;
- unsigned int index;
- struct iflist *prev_entry;
- struct iflist *next_entry;
-};
-
-struct iftab {
- struct iflist *head;
- struct iflist *tail;
- struct iflist *firstvisible;
- struct iflist *lastvisible;
- WINDOW *borderwin;
- PANEL *borderpanel;
- WINDOW *statwin;
- PANEL *statpanel;
-};
-
struct pkt_counter {
unsigned long long pc_packets;
unsigned long long pc_bytes;
--
1.7.8.4