]> sjero.net Git - wget/commitdiff
Fix GCC warnings.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 24 Apr 2011 11:03:48 +0000 (13:03 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 24 Apr 2011 11:03:48 +0000 (13:03 +0200)
src/ChangeLog
src/gnutls.c
src/html-url.c

index 3a17a53bae119c781742bd38630ce82c29195c49..aacce5d17d2c5248499ec5d24ffc435c96824e94 100644 (file)
@@ -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.
 2011-04-21  Daniel Manrique <roadmr@tomechangosubanana.com> (tiny change)
        * main.c (main): Set exit status when invalid host name given in
        command line.
index 1f96d9acf0df5072cdf6e6b65a1f3a54987a5c02..db9241678c45bf58d7662028112d9fe0526fe1a0 100644 (file)
@@ -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)
 {
 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)
   struct wgnutls_transport_context *ctx = arg;
   int offset = MIN (bufsize, ctx->peeklen);
   if (bufsize > sizeof ctx->peekbuf)
index c7c3e39ab55929e2f23028ddc25046575c468515..f5ab2932902d9ece8a6ac6451c61d888ec8031f9 100644 (file)
@@ -36,6 +36,7 @@ as that of the covered work.  */
 #include <errno.h>
 #include <assert.h>
 
 #include <errno.h>
 #include <assert.h>
 
+#include "exits.h"
 #include "html-parse.h"
 #include "url.h"
 #include "utils.h"
 #include "html-parse.h"
 #include "url.h"
 #include "utils.h"