2b9fff8
diff -up net-tools-1.60/statistics.c.doubleword net-tools-1.60/statistics.c
2b9fff8
--- net-tools-1.60/statistics.c.doubleword	2010-02-17 15:01:12.000000000 +0100
2b9fff8
+++ net-tools-1.60/statistics.c	2010-04-07 13:18:02.000000000 +0200
2b9fff8
@@ -271,7 +271,7 @@ int cmpentries(const void *a, const void
2b9fff8
     return strcmp(((struct entry *) a)->title, ((struct entry *) b)->title);
2b9fff8
 }
2b9fff8
 
2b9fff8
-void printval(struct tabtab *tab, char *title, int val)
2b9fff8
+void printval(struct tabtab *tab, char *title, unsigned long long val)
2b9fff8
 {
2b9fff8
     struct entry *ent = NULL, key;
2b9fff8
     int type;
2b9fff8
@@ -283,7 +283,7 @@ void printval(struct tabtab *tab, char *
2b9fff8
 			  sizeof(struct entry), cmpentries);
2b9fff8
     if (!ent) {			/* try our best */
2b9fff8
 	if (val) 
2b9fff8
-		printf("%*s%s: %d\n", states[state].indent, "", title, val);
2b9fff8
+		printf("%*s%s: %llu\n", states[state].indent, "", title, val);
2b9fff8
 	return;
2b9fff8
     }
2b9fff8
     type = ent->type;
2b9fff8
@@ -390,7 +390,7 @@ void process_fd(FILE *f,int file_desc)  
2b9fff8
 	    *p = '\0';
2b9fff8
 
2b9fff8
 	    if (*sp != '\0' && *(tab->flag)) 	
2b9fff8
-		printval(tab, sp, strtoul(np, &np, 10));
2b9fff8
+		printval(tab, sp, strtoull(np, &np, 10));
2b9fff8
 
2b9fff8
 	    sp = p + 1;
2b9fff8
 	}
2b9fff8
@@ -426,7 +426,7 @@ void process_fd2(FILE *f, const char *fi
2b9fff8
 	sp += strspn(sp, " \t\n"); 
2b9fff8
 
2b9fff8
 	if (*sp != '\0' && *(tab->flag)) 	
2b9fff8
-	    printval(tab, buf1, strtoul(sp, 0, 10));
2b9fff8
+	    printval(tab, buf1, strtoull(sp, 0, 10));
2b9fff8
     }
2b9fff8
   return;
2b9fff8