Changeset 1547


Ignore:
Timestamp:
Mar 8, 2007, 5:34:25 AM (15 years ago)
Author:
joshe
Message:

bzero -> memset

Location:
branches/pex/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pex/libtransmission/peertree.h

    r1540 r1547  
    6969    tr_peertree_entry_t entry;
    7070
    71     bzero( &entry, sizeof( entry ) );
     71    memset( &entry, 0, sizeof( entry ) );
    7272    memcpy( entry.peer, addr, 4 );
    7373    memcpy( entry.peer + 4, &port, 2 );
  • branches/pex/libtransmission/torrent.c

    r1540 r1547  
    325325
    326326    s->peersTotal       = 0;
    327     bzero( s->peersFrom, sizeof( s->peersFrom ) );
     327    memset( s->peersFrom, 0, sizeof( s->peersFrom ) );
    328328    s->peersUploading   = 0;
    329329    s->peersDownloading = 0;
Note: See TracChangeset for help on using the changeset viewer.