Changeset 86f89be4 in rtems


Ignore:
Timestamp:
Aug 21, 2008, 6:07:07 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
e53fd874
Parents:
3316af8
Message:

Use memset instead of bzero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_ifconfig.c

    r3316af8 r86f89be4  
    5050  int                 flags;
    5151
    52   bzero((void*) &ipaddr, sizeof(ipaddr));
    53   bzero((void*) &dstaddr, sizeof(dstaddr));
    54   bzero((void*) &netmask, sizeof(netmask));
    55   bzero((void*) &broadcast, sizeof(broadcast));
     52  memset(&ipaddr, 0, sizeof(ipaddr));
     53  memset(&dstaddr, 0, sizeof(dstaddr));
     54  memset(&netmask, 0, sizeof(netmask));
     55  memset(&broadcast, 0, sizeof(broadcast));
    5656   
    5757  ipaddr.sin_len = sizeof(ipaddr);
Note: See TracChangeset for help on using the changeset viewer.