File net-tools-1.60-printval-conversion.patch of Package net-tools
--- net-tools-1.60/statistics.c 2009-05-12 19:11:39.000000000 +0000
+++ net-tools-1.60/statistics.c 2009-05-12 19:12:26.000000000 +0000
@@ -233,7 +233,7 @@
return strcmp(((struct entry *) a)->title, ((struct entry *) b)->title);
}
-void printval(struct tabtab *tab, char *title, int val)
+void printval(struct tabtab *tab, char *title, signed long val)
{
struct entry *ent = NULL, key;
int type;
@@ -244,7 +244,7 @@
ent = bsearch(&key, tab->tab, tab->size / sizeof(struct entry),
sizeof(struct entry), cmpentries);
if (!ent) { /* try our best */
- printf("%*s%s: %d\n", states[state].indent, "", title, val);
+ printf("%*s%s: %lu\n", states[state].indent, "", title, val);
return;
}
type = ent->type;