From: Willy Tarreau Date: Tue, 11 Dec 2018 10:11:37 +0000 (+0100) Subject: CLEANUP: h1: remove some occurrences of unneeded h1.h inclusions X-Git-Tag: v1.9-dev11~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30925659ef21de786e3bf0dbf1013b9ce871d9ba;p=thirdparty%2Fhaproxy.git CLEANUP: h1: remove some occurrences of unneeded h1.h inclusions Several places where h1.h was included didn't need it at all since they in fact relied on the legacy HTTP definitions. --- diff --git a/include/proto/http_htx.h b/include/proto/http_htx.h index 7a2e008ae7..6028292d29 100644 --- a/include/proto/http_htx.h +++ b/include/proto/http_htx.h @@ -26,7 +26,6 @@ #include #include -#include #include extern struct buffer htx_err_chunks[HTTP_ERR_SIZE]; diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index db85fae8c1..1d210336fd 100644 --- a/include/proto/proto_http.h +++ b/include/proto/proto_http.h @@ -27,7 +27,6 @@ #include #include #include -#include #define IS_HTX_STRM(strm) (strm_fe(strm)->options2 & PR_O2_USE_HTX) #define IS_HTX_SMP(smp) ((smp)->strm && IS_HTX_STRM((smp)->strm)) diff --git a/include/types/proto_http.h b/include/types/proto_http.h index 972a6d3308..21910a91e9 100644 --- a/include/types/proto_http.h +++ b/include/types/proto_http.h @@ -29,7 +29,6 @@ #include #include -#include #include #include //#include diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c index aaab32e726..74a8ae72a0 100644 --- a/src/flt_http_comp.c +++ b/src/flt_http_comp.c @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/src/flt_trace.c b/src/flt_trace.c index 1daeb22b97..3cfd842ce1 100644 --- a/src/flt_trace.c +++ b/src/flt_trace.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c index f977d64a0a..472fb0c718 100644 --- a/src/hlua_fcn.c +++ b/src/hlua_fcn.c @@ -26,7 +26,6 @@ #include #include -#include #include #include #include diff --git a/src/http_fetch.c b/src/http_fetch.c index 14b8ba239c..5f6cb6cfef 100644 --- a/src/http_fetch.c +++ b/src/http_fetch.c @@ -32,6 +32,7 @@ #include #include +#include #include #include #include diff --git a/src/log.c b/src/log.c index 3093ccea3b..6c6efedae1 100644 --- a/src/log.c +++ b/src/log.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include