From 2a8fe8bb48e0c200ad739f473ca79728578d4367 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 20 Aug 2021 14:25:15 +0200 Subject: [PATCH] MINOR: httpclient: cleanup the include files Include the correct .h files in http_client.c and http_client.h. The api.h is needed in http_client.c and http_client-t.h is now include directly from http_client.h --- include/haproxy/http_client.h | 2 ++ src/http_client.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/haproxy/http_client.h b/include/haproxy/http_client.h index 2f507dd..a34b3cd 100644 --- a/include/haproxy/http_client.h +++ b/include/haproxy/http_client.h @@ -1,6 +1,8 @@ #ifndef _HAPROXY_HTTPCLIENT_H #define _HAPROXY_HTTPCLIENT_H +#include + void httpclient_destroy(struct httpclient *hc); struct httpclient *httpclient_new(void *caller, enum http_meth_t meth, struct ist url); diff --git a/src/http_client.c b/src/http_client.c index 257c2c0..582348f 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -11,10 +11,8 @@ * This file implements an HTTP Client API. * */ -#include -#include -#include +#include #include #include #include @@ -28,6 +26,7 @@ #include #include #include +#include #include #include -- 1.7.10.4