imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / iptraf / patches / patch-src_log_c
blob87e454f07870facf0cf6378f38cb4c22b3dd0bf7
1 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
2 --- iptraf-3.0.0.orig/src/log.c 2005-09-13 08:42:54.000000000 +0200
3 +++ iptraf-3.0.0/src/log.c      2009-05-21 23:02:34.000000000 +0200
4 @@ -125,7 +125,7 @@ void opentlog(FILE ** fd, char *logfilen
5  
6  void genatime(time_t now, char *atime)
7  {
8 -    bzero(atime, TIME_TARGET_MAX);
9 +    memset(atime, 0, TIME_TARGET_MAX);
10      strncpy(atime, ctime(&now), 26);
11      atime[strlen(atime) - 1] = '\0';
12  }
13 @@ -204,7 +204,7 @@ void writeothplog(int logging, FILE * fd
14      char scratchpad[MSGSTRING_MAX];
16      if (logging) {
17 -        bzero(msgbuffer, MSGSTRING_MAX);
18 +        memset(msgbuffer, 0, MSGSTRING_MAX);
20          strcpy(msgbuffer, protname);
21          strcat(msgbuffer, "; ");
22 @@ -491,8 +491,6 @@ void writeethlog(struct ethtabent *list,
23                          ptmp->un.desc.ascaddr);
24              else if (ptmp->un.desc.linktype == LINK_PLIP)
25                  fprintf(fd, "\nPLIP address: %s", ptmp->un.desc.ascaddr);
26 -            else if (ptmp->un.desc.linktype == LINK_FDDI)
27 -                fprintf(fd, "\nFDDI address: %s", ptmp->un.desc.ascaddr);
29              if (ptmp->un.desc.withdesc)
30                  fprintf(fd, " (%s)", ptmp->un.desc.desc);