---
src/itrafmon.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/itrafmon.c b/src/itrafmon.c
index f19eb61..75975f2 100644
--- a/src/itrafmon.c
+++ b/src/itrafmon.c
@@ -535,11 +535,12 @@ static int checkrvnamed(void)
return 1;
}
-static void ipmon_process_key(int ch, int curwin, struct tcptable *table, struct
othptable *othptbl)
+static void ipmon_process_key(int ch, struct tcptable *table, struct othptable *othptbl)
{
static int keymode = 0;
static WINDOW *sortwin;
static PANEL *sortpanel;
+ static int curwin = 0;
if (keymode == 0) {
switch (ch) {
@@ -840,8 +841,6 @@ void ipmon(time_t facilitytime, char *ifptr)
FILE *logfile = NULL;
- int curwin = 0;
-
unsigned long long total_pkts = 0;
struct tcptable table;
@@ -926,7 +925,7 @@ void ipmon(time_t facilitytime, char *ifptr)
init_tcp_table(&table);
init_othp_table(&othptbl);
- markactive(curwin, table.borderwin, othptbl.borderwin);
+ markactive(0, table.borderwin, othptbl.borderwin);
ipmonhelp();
uniq_help(0);
update_panels();
@@ -1012,7 +1011,7 @@ void ipmon(time_t facilitytime, char *ifptr)
}
if (ch != ERR)
- ipmon_process_key(ch, curwin, &table, &othptbl);
+ ipmon_process_key(ch, &table, &othptbl);
if (pkt.pkt_len > 0) {
total_pkts++;
--
1.7.10.4
Show replies by thread