diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-24 20:11:16 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-24 20:11:16 +0200 |
commit | f3e84309257b915cb8820917a8dd5578f02fe974 (patch) | |
tree | f3549b877c058c562bf01fc30a8acf23626f2e31 /package/iptraf/patches/patch-src_landesc_c | |
parent | 83a08921a2f21d95822ca2a8da37f1e2f85ea717 (diff) |
patches and update for gcc 4.4.0 allmodconfig
* update gcc to 4.4.0
* update gnutls and ruby
* fix c++ issues for some packages
Diffstat (limited to 'package/iptraf/patches/patch-src_landesc_c')
-rw-r--r-- | package/iptraf/patches/patch-src_landesc_c | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/package/iptraf/patches/patch-src_landesc_c b/package/iptraf/patches/patch-src_landesc_c index 8cbdd6be0..3af440685 100644 --- a/package/iptraf/patches/patch-src_landesc_c +++ b/package/iptraf/patches/patch-src_landesc_c @@ -1,7 +1,12 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $ --- iptraf-3.0.0.orig/src/landesc.c 2005-09-13 08:42:54.000000000 +0200 -+++ iptraf-3.0.0/src/landesc.c 2008-10-09 17:34:11.000000000 +0200 -@@ -83,8 +83,6 @@ void loaddesclist(struct desclist *list, ++++ iptraf-3.0.0/src/landesc.c 2009-05-21 23:01:53.000000000 +0200 +@@ -79,12 +79,10 @@ void loaddesclist(struct desclist *list, + char etherline[140]; + int i, j; /* counters used when parsing /etc/ethers */ + +- bzero(list, sizeof(struct desclist)); ++ memset(list, 0, sizeof(struct desclist)); if (linktype == LINK_ETHERNET) fd = fopen(ETHFILE, "r"); @@ -10,6 +15,30 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $ if (fd == NULL) { return; +@@ -95,8 +93,8 @@ void loaddesclist(struct desclist *list, + printnomem(); + return; + } +- bzero(ptmp, sizeof(struct desclistent)); +- bzero(descline, 140); ++ memset(ptmp, 0, sizeof(struct desclistent)); ++ memset(descline, 0, 140); + fgets(descline, 140, fd); + + if (strcmp(descline, "") == 0) { +@@ -145,9 +143,9 @@ void loaddesclist(struct desclist *list, + printnomem(); + return; + } +- bzero(ptmp, sizeof(struct desclistent)); +- bzero(descline, 140); +- bzero(etherline, 140); ++ memset(ptmp, 0, sizeof(struct desclistent)); ++ memset(descline, 0, 140); ++ memset(etherline, 0, 140); + fgets(etherline, 140, fd); + + /* @@ -205,8 +203,6 @@ void savedesclist(struct desclist *list, if (linktype == LINK_ETHERNET) |