Toggling IP info and ASN lookup from the curses interface can be done
using 'z' or 'y'. But it was only allowed if it was first enabled via
a command-line switch (either -z or -y).
break;
#ifdef IPINFO
case ActionII:
- if (ipinfo_no >= 0) {
- ipinfo_no++;
- if (ipinfo_no > ipinfo_max)
- ipinfo_no = 0;
- }
+ ipinfo_no++;
+ if (ipinfo_no > ipinfo_max)
+ ipinfo_no = 0;
break;
case ActionAS:
- if (ipinfo_no >= 0)
- ipinfo_no = ipinfo_no?0:ipinfo_max;
+ ipinfo_no = ipinfo_no?0:ipinfo_max;
break;
#endif