summaryrefslogtreecommitdiff
path: root/netstat.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-31 19:54:16 +0000
committerMike Frysinger <vapier@gentoo.org>2009-12-31 19:54:16 +0000
commit043b0faaaa1556f8d5218f2072492e1a03e2d1d9 (patch)
tree116db0a33dd1b774b9bb062664e7cc1d33daf477 /netstat.c
parent592e3a3f1832336d38802c6bfd328682c9e9dfcb (diff)
downloadnet-tools-043b0faaaa1556f8d5218f2072492e1a03e2d1d9.tar.gz
net-tools-043b0faaaa1556f8d5218f2072492e1a03e2d1d9.tar.bz2
net-tools-043b0faaaa1556f8d5218f2072492e1a03e2d1d9.zip
netstat: fix %*s handling -- the field takes an int, not a size_t
Diffstat (limited to 'netstat.c')
-rw-r--r--netstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netstat.c b/netstat.c
index b711990..49c268a 100644
--- a/netstat.c
+++ b/netstat.c
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* system.
*
- * Version: $Id: netstat.c,v 1.67 2009/09/06 23:05:28 vapier Exp $
+ * Version: $Id: netstat.c,v 1.68 2009/12/31 19:54:16 vapier Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
@@ -984,7 +984,7 @@ static void tcp_do_one(int lnr, const char *line, const char *prot)
break;
}
printf("%-4s %6ld %6ld %-*s %-*s %-11s",
- prot, rxq, txq, netmax(23,strlen(local_addr)), local_addr, netmax(23,strlen(rem_addr)), rem_addr, _(tcp_state[state]));
+ prot, rxq, txq, (int)netmax(23,strlen(local_addr)), local_addr, (int)netmax(23,strlen(rem_addr)), rem_addr, _(tcp_state[state]));
finish_this_one(uid,inode,timers);
}