From 1fab70a664245d67260b4e367b21cb5a77d50711 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 8 May 2005 02:58:39 -0700 Subject: [PATCH] [svn] Fix warnings reported by gcc -Wstrict-prototypes -Wmissing-prototypes. --- src/ChangeLog | 6 ++++++ src/html-url.c | 1 + src/http.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index b7ebd455..07b53de5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2005-05-08 Hrvoje Niksic + + * html-url.c: Include recur.h. + + * http.c (request_new): Define as accepting no args. + 2005-05-07 Hrvoje Niksic * url.c (strpbrk_or_eos): Made inline. Use strchr(s, '\0') for diff --git a/src/html-url.c b/src/html-url.c index 4216c796..2a162bd7 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -45,6 +45,7 @@ so, delete this exception statement from your version. */ #include "utils.h" #include "hash.h" #include "convert.h" +#include "recur.h" /* declaration of get_urls_html */ #ifndef errno extern int errno; diff --git a/src/http.c b/src/http.c index 5562b037..b7580335 100644 --- a/src/http.c +++ b/src/http.c @@ -148,7 +148,7 @@ struct request { called before the request can be used. */ static struct request * -request_new () +request_new (void) { struct request *req = xnew0 (struct request); req->hcapacity = 8; -- 2.39.2