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) {
break;
case 'h':
usage();
exit(0);
break;
default:
printf("Unknown option: %c\n", ch);
usage();
return -1;
break;
......@@ -584,8 +579,6 @@ void get_packet_counts(SLOTHD_PACKET *pkt) {
#ifndef __CYGWIN__
int get_counters(char *buf, void *data) {
int nscan = 0;
SLOTHD_PACKET *pkt = (SLOTHD_PACKET*)data;
#ifdef __linux__
struct ifreq ifr;
......@@ -603,13 +596,13 @@ int get_counters(char *buf, void *data) {
#endif
{
if ((nscan = sscanf(buf, CNTFMTSTR,
if (sscanf(buf, CNTFMTSTR,
pkt->ifaces[pkt->ifcnt].ifname,
#ifdef __FreeBSD__
pkt->ifaces[pkt->ifcnt].addr,
#endif
&pkt->ifaces[pkt->ifcnt].ipkts,
&pkt->ifaces[pkt->ifcnt].opkts)) != NUMSCAN) {
&pkt->ifaces[pkt->ifcnt].opkts) != NUMSCAN) {
printf("Failed to parse netinfo output.\n");
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