packages/net/bwping/patches/100-getopt-returns-int.patch
acoul 37b2313141 net/bwping: BWPing is a small utility for bandwidth measuring. (thank you Florian Sesser)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-19 17:26:01 +00:00

13 lines
535 B
Diff

diff -urN bwping-1.2.orig/bwping.c bwping-1.2/bwping.c
--- bwping-1.2.orig/bwping.c 2010-01-22 17:49:29.000000000 +0000
+++ bwping-1.2/bwping.c 2010-12-07 12:30:26.000000000 +0000
@@ -221,7 +221,7 @@
unsigned int bufsize, tos, transmitted_number, received_number;
unsigned long int kbps, pktsize, volume, rperiod, received_volume;
unsigned long long int min_interval, interval, current_interval, integral_error;
- char ch;
+ int ch;
char *ep, *target;
fd_set fds;
struct sockaddr_in to;