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  <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)
 	* 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 <errno.h>
 #include <assert.h>
 
+#include "exits.h"
 #include "html-parse.h"
 #include "url.h"
 #include "utils.h"