[svn] Use the xzero shorthand for memset(..., 0, ...).

This commit is contained in:
hniksic 2005-04-01 16:41:04 -08:00
parent 334a0cf9c9
commit 4b57f166ae
2 changed files with 3 additions and 3 deletions

View File

@ -490,7 +490,7 @@ ftp_pasv (int csock, ip_address *addr, int *port)
assert (addr != NULL);
assert (port != NULL);
memset (addr, 0, sizeof (ip_address));
xzero (*addr);
/* Form the request. */
request = ftp_request ("PASV", NULL);
@ -558,7 +558,7 @@ ftp_lpsv (int csock, ip_address *addr, int *port)
assert (addr != NULL);
assert (port != NULL);
memset (addr, 0, sizeof (ip_address));
xzero (*addr);
/* Form the request. */
request = ftp_request ("LPSV", NULL);

View File

@ -1846,7 +1846,7 @@ ftp_loop (struct url *u, int *dt, struct url *proxy)
*dt = 0;
memset (&con, 0, sizeof (con));
xzero (con);
con.csock = -1;
con.st = ON_YOUR_OWN;