mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix GCC warnings.
This commit is contained in:
parent
df99868cb1
commit
ee6021a3b0
@ -1,3 +1,8 @@
|
|||||||
|
2011-04-24 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* html-url.c: Include "exists.h".
|
||||||
|
* gnutls.c (wgnutls_peek): Remove local variable `ret'.
|
||||||
|
|
||||||
2011-04-21 Daniel Manrique <roadmr@tomechangosubanana.com> (tiny change)
|
2011-04-21 Daniel Manrique <roadmr@tomechangosubanana.com> (tiny change)
|
||||||
* main.c (main): Set exit status when invalid host name given in
|
* main.c (main): Set exit status when invalid host name given in
|
||||||
command line.
|
command line.
|
||||||
|
@ -174,7 +174,7 @@ wgnutls_poll (int fd, double timeout, int wait_for, void *arg)
|
|||||||
static int
|
static int
|
||||||
wgnutls_peek (int fd, char *buf, int bufsize, void *arg)
|
wgnutls_peek (int fd, char *buf, int bufsize, void *arg)
|
||||||
{
|
{
|
||||||
int ret = 0, read = 0;
|
int read = 0;
|
||||||
struct wgnutls_transport_context *ctx = arg;
|
struct wgnutls_transport_context *ctx = arg;
|
||||||
int offset = MIN (bufsize, ctx->peeklen);
|
int offset = MIN (bufsize, ctx->peeklen);
|
||||||
if (bufsize > sizeof ctx->peekbuf)
|
if (bufsize > sizeof ctx->peekbuf)
|
||||||
|
@ -36,6 +36,7 @@ as that of the covered work. */
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include "exits.h"
|
||||||
#include "html-parse.h"
|
#include "html-parse.h"
|
||||||
#include "url.h"
|
#include "url.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user