summaryrefslogtreecommitdiff
path: root/package/iptraf/patches/patch-src_serv_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-24 20:20:09 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-24 20:20:09 +0200
commitbad63eb735b13e1f009a19af1dd810f7279c2ba1 (patch)
tree34bcc61fd5814931f3472a594802606316c888a8 /package/iptraf/patches/patch-src_serv_c
parent57f1ccba214ee4d658fe2bcd61ef51651ade3225 (diff)
gcc 4.4 compatibility patches
* add the rest of the patches missed by the last commit
Diffstat (limited to 'package/iptraf/patches/patch-src_serv_c')
-rw-r--r--package/iptraf/patches/patch-src_serv_c12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/iptraf/patches/patch-src_serv_c b/package/iptraf/patches/patch-src_serv_c
new file mode 100644
index 000000000..7d1911924
--- /dev/null
+++ b/package/iptraf/patches/patch-src_serv_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- iptraf-3.0.0.orig/src/serv.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.0/src/serv.c 2009-05-21 23:04:11.000000000 +0200
+@@ -713,7 +713,7 @@ void update_serv_rates(struct portlist *
+ mvwprintw(win, 0, 46, "%10.2f", outrate);
+ mvwprintw(win, 0, 61, "%10.2f", totalrate);
+
+- bzero(&(list->barptr->spans), sizeof(struct serv_spans));
++ memset(&(list->barptr->spans), 0, sizeof(struct serv_spans));
+ list->barptr->starttime = time(NULL);
+ *cleared = 0;
+ }