mirror of
https://github.com/transmission/transmission
synced 2025-03-06 03:28:33 +00:00
Use memset instead of bzero.
This commit is contained in:
parent
6ac35991e5
commit
caebe8b862
1 changed files with 2 additions and 2 deletions
|
@ -605,7 +605,7 @@ sendreq( tr_natpmp_req_t * req )
|
||||||
uint8_t buf[12];
|
uint8_t buf[12];
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
bzero( buf, sizeof( buf ) );
|
memset( buf, 0, sizeof( buf ) );
|
||||||
buf[0] = PMP_VERSION;
|
buf[0] = PMP_VERSION;
|
||||||
buf[1] = PMP_OPCODE_ADDTCP;
|
buf[1] = PMP_OPCODE_ADDTCP;
|
||||||
PMP_TOBUF16( buf + 4, req->askport );
|
PMP_TOBUF16( buf + 4, req->askport );
|
||||||
|
@ -707,7 +707,7 @@ parseresponse( uint8_t * buf, int len, int port, tr_natpmp_parse_t * parse )
|
||||||
{
|
{
|
||||||
int version, respopcode, opcode, wantedopcode, rescode, privport;
|
int version, respopcode, opcode, wantedopcode, rescode, privport;
|
||||||
|
|
||||||
bzero( parse, sizeof( *parse ) );
|
memset( parse, 0, sizeof( *parse ) );
|
||||||
|
|
||||||
if( 8 > len )
|
if( 8 > len )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue