if (!write_data (out, dlbuf, ret, &skip, &sum_written))
{
ret = -2;
- goto out;
+ goto out_;
}
}
if (ret < -1)
ret = -1;
- out:
+ out_:
if (progress)
progress_finish (progress, ptimer_read (timer));
/* First, peek at the available data. */
- pklen = fd_peek (fd, hunk + tail, bufsize - 1 - tail, -1);
+ pklen = fd_peek (fd, hunk + tail, bufsize - 1 - tail, -1.0);
if (pklen < 0)
{
xfree (hunk);
how much data we'll get. (Some TCP stacks are notorious for
read returning less data than the previous MSG_PEEK.) */
- rdlen = fd_read (fd, hunk + tail, remain, 0);
+ rdlen = fd_read (fd, hunk + tail, remain, 0.0);
if (rdlen < 0)
{
xfree_null (hunk);
if (filename && opt.delete_after && file_exists_p (filename))
{
- DEBUGP (("Removing file due to --delete-after in"
- " retrieve_from_file():\n"));
+ DEBUGP (("\
+Removing file due to --delete-after in retrieve_from_file():\n"));
logprintf (LOG_VERBOSE, _("Removing %s.\n"), filename);
if (unlink (filename))
logprintf (LOG_NOTQUIET, "unlink: %s\n", strerror (errno));
/* If opt.waitretry is specified and this is a retry, wait for
COUNT-1 number of seconds, or for opt.waitretry seconds. */
if (count <= opt.waitretry)
- xsleep (count - 1);
+ xsleep (count - 1.0);
else
xsleep (opt.waitretry);
}
}
/* Should a host be accessed through proxy, concerning no_proxy? */
-int
+static int
no_proxy_match (const char *host, const char **no_proxy)
{
if (!no_proxy)