Commit 231845af authored by Kirk Webb's avatar Kirk Webb

Get rid of some debugging stuff.

parent 8c98fc4b
...@@ -242,12 +242,7 @@ int parse_args(int argc, char **argv) { ...@@ -242,12 +242,7 @@ int parse_args(int argc, char **argv) {
break; break;
case 'h': case 'h':
usage();
exit(0);
break;
default: default:
printf("Unknown option: %c\n", ch);
usage(); usage();
return -1; return -1;
break; break;
...@@ -584,8 +579,6 @@ void get_packet_counts(SLOTHD_PACKET *pkt) { ...@@ -584,8 +579,6 @@ void get_packet_counts(SLOTHD_PACKET *pkt) {
#ifndef __CYGWIN__ #ifndef __CYGWIN__
int get_counters(char *buf, void *data) { int get_counters(char *buf, void *data) {
int nscan = 0;
SLOTHD_PACKET *pkt = (SLOTHD_PACKET*)data; SLOTHD_PACKET *pkt = (SLOTHD_PACKET*)data;
#ifdef __linux__ #ifdef __linux__
struct ifreq ifr; struct ifreq ifr;
...@@ -603,13 +596,13 @@ int get_counters(char *buf, void *data) { ...@@ -603,13 +596,13 @@ int get_counters(char *buf, void *data) {
#endif #endif
{ {
if ((nscan = sscanf(buf, CNTFMTSTR, if (sscanf(buf, CNTFMTSTR,
pkt->ifaces[pkt->ifcnt].ifname, pkt->ifaces[pkt->ifcnt].ifname,
#ifdef __FreeBSD__ #ifdef __FreeBSD__
pkt->ifaces[pkt->ifcnt].addr, pkt->ifaces[pkt->ifcnt].addr,
#endif #endif
&pkt->ifaces[pkt->ifcnt].ipkts, &pkt->ifaces[pkt->ifcnt].ipkts,
&pkt->ifaces[pkt->ifcnt].opkts)) != NUMSCAN) { &pkt->ifaces[pkt->ifcnt].opkts) != NUMSCAN) {
printf("Failed to parse netinfo output.\n"); printf("Failed to parse netinfo output.\n");
return -1; return -1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment