]> sjero.net Git - wget/commitdiff
[svn] Use the xzero shorthand for memset(..., 0, ...).
authorhniksic <devnull@localhost>
Sat, 2 Apr 2005 00:41:04 +0000 (16:41 -0800)
committerhniksic <devnull@localhost>
Sat, 2 Apr 2005 00:41:04 +0000 (16:41 -0800)
src/ftp-basic.c
src/ftp.c

index 5d32aadc626a5447e368793820940fbe1fd89f0b..d3714a03891c4ea6fcba8128717791c29ed4eb84 100644 (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);
index a9ef47cef5f3ac0c090b214814d44e988df49e00..2ced21b8bed46f32cb3633b544f01eddaa603e32 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -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;