From ee6021a3b09fd65b7fa08a14dd37bd5010219d42 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sun, 24 Apr 2011 13:03:48 +0200 Subject: [PATCH] Fix GCC warnings. --- src/ChangeLog | 5 +++++ src/gnutls.c | 2 +- src/html-url.c | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3a17a53b..aacce5d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-04-24 Giuseppe Scrivano + + * html-url.c: Include "exists.h". + * gnutls.c (wgnutls_peek): Remove local variable `ret'. + 2011-04-21 Daniel Manrique (tiny change) * main.c (main): Set exit status when invalid host name given in command line. diff --git a/src/gnutls.c b/src/gnutls.c index 1f96d9ac..db924167 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -174,7 +174,7 @@ wgnutls_poll (int fd, double timeout, int wait_for, void *arg) static int wgnutls_peek (int fd, char *buf, int bufsize, void *arg) { - int ret = 0, read = 0; + int read = 0; struct wgnutls_transport_context *ctx = arg; int offset = MIN (bufsize, ctx->peeklen); if (bufsize > sizeof ctx->peekbuf) diff --git a/src/html-url.c b/src/html-url.c index c7c3e39a..f5ab2932 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -36,6 +36,7 @@ as that of the covered work. */ #include #include +#include "exits.h" #include "html-parse.h" #include "url.h" #include "utils.h"