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_log_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_log_c')
-rw-r--r-- | package/iptraf/patches/patch-src_log_c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/package/iptraf/patches/patch-src_log_c b/package/iptraf/patches/patch-src_log_c index 59786fcee..87e454f07 100644 --- a/package/iptraf/patches/patch-src_log_c +++ b/package/iptraf/patches/patch-src_log_c @@ -1,6 +1,24 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $ --- iptraf-3.0.0.orig/src/log.c 2005-09-13 08:42:54.000000000 +0200 -+++ iptraf-3.0.0/src/log.c 2008-10-09 17:34:11.000000000 +0200 ++++ iptraf-3.0.0/src/log.c 2009-05-21 23:02:34.000000000 +0200 +@@ -125,7 +125,7 @@ void opentlog(FILE ** fd, char *logfilen + + void genatime(time_t now, char *atime) + { +- bzero(atime, TIME_TARGET_MAX); ++ memset(atime, 0, TIME_TARGET_MAX); + strncpy(atime, ctime(&now), 26); + atime[strlen(atime) - 1] = '\0'; + } +@@ -204,7 +204,7 @@ void writeothplog(int logging, FILE * fd + char scratchpad[MSGSTRING_MAX]; + + if (logging) { +- bzero(msgbuffer, MSGSTRING_MAX); ++ memset(msgbuffer, 0, MSGSTRING_MAX); + + strcpy(msgbuffer, protname); + strcat(msgbuffer, "; "); @@ -491,8 +491,6 @@ void writeethlog(struct ethtabent *list, ptmp->un.desc.ascaddr); else if (ptmp->un.desc.linktype == LINK_PLIP) |