]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Use the xzero shorthand for memset(..., 0, ...).
[wget] / src / ftp.c
index 257a0574bb13002e426fbff94acf14e768ad9ab0..2ced21b8bed46f32cb3633b544f01eddaa603e32 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -253,7 +253,7 @@ getftp (struct url *u, wgint *len, wgint restval, ccon *con)
   char *tms, *tmrate;
   int cmd = con->cmd;
   int pasv_mode_open = 0;
-  wgint expected_bytes = 0L;
+  wgint expected_bytes = 0;
   int rest_failed = 0;
   int flags;
   wgint rd_size;
@@ -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;