Supressed some spurious output.

This commit is contained in:
gardners 2011-12-04 17:48:34 +10:30
parent 6548a63b8e
commit 3939001501

View File

@ -52,7 +52,7 @@ int readRoutingTable(struct in_addr peers[],int *peer_count,int peer_max){
FILE *fp = fopen("/proc/net/route","r");
if (!fp) return -1;
fprintf(stderr,"Skipping line\n");
if (debug>1) fprintf(stderr,"Skipping line\n");
if (fscanf(fp, "%*[^\n]\n") < 0)
goto ERROR;
@ -100,7 +100,7 @@ int readArpTable(struct in_addr peers[],int *peer_count,int peer_max){
FILE *fp = fopen("/proc/net/arp","r");
if (!fp) return -1;
fprintf(stderr,"Skipping line\n");
if (debug>1) fprintf(stderr,"Skipping line\n");
if (fscanf(fp, "%*[^\n]\n") < 0)
goto ERROR;