From: Willy Tarreau Date: Mon, 1 Jun 2020 10:09:26 +0000 (+0200) Subject: CLEANUP: include: remove excessive includes of common/standard.h X-Git-Tag: v2.2-dev9~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=889faf467b2c2b58f84effa13b1b2b4988184c03;p=thirdparty%2Fhaproxy.git CLEANUP: include: remove excessive includes of common/standard.h Some of them were simply removed as unused (possibly some leftovers from an older cleanup session), some were turned to haproxy/bitops.h and a few had to be added (hlua.c and stick-table.h need standard.h for parse_time_err; htx.h requires chunk.h but used to get it through standard.h). --- diff --git a/include/common/fcgi.h b/include/common/fcgi.h index b822a2c840..43174f0959 100644 --- a/include/common/fcgi.h +++ b/include/common/fcgi.h @@ -24,7 +24,6 @@ #include #include -#include #include #include diff --git a/include/common/h1.h b/include/common/h1.h index f75ee11fbd..1295b14200 100644 --- a/include/common/h1.h +++ b/include/common/h1.h @@ -23,11 +23,11 @@ #define _COMMON_H1_H #include +#include #include #include #include #include -#include /* Possible states while parsing HTTP/1 messages (request|response) */ diff --git a/include/common/htx.h b/include/common/htx.h index 197ffb6e68..e73b69939a 100644 --- a/include/common/htx.h +++ b/include/common/htx.h @@ -26,9 +26,9 @@ #include #include #include +#include #include #include -#include /* * The internal representation of an HTTP message, called HTX, is a structure diff --git a/include/common/net_helper.h b/include/common/net_helper.h index 8fdf12088f..5911ca4da8 100644 --- a/include/common/net_helper.h +++ b/include/common/net_helper.h @@ -28,7 +28,7 @@ #define _COMMON_NET_HELPER_H #include -#include +#include #include /* Functions to read/write various integers that may be unaligned */ diff --git a/include/common/ticks.h b/include/common/ticks.h index 807b323dfe..7fd0bbab26 100644 --- a/include/common/ticks.h +++ b/include/common/ticks.h @@ -53,7 +53,6 @@ #define _COMMON_TICKS_H #include -#include #define TICK_ETERNITY 0 diff --git a/include/proto/freq_ctr.h b/include/proto/freq_ctr.h index 896a4694e4..332d720b3f 100644 --- a/include/proto/freq_ctr.h +++ b/include/proto/freq_ctr.h @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include diff --git a/include/proto/pattern.h b/include/proto/pattern.h index 2d51d95ad3..73c48cc3b1 100644 --- a/include/proto/pattern.h +++ b/include/proto/pattern.h @@ -25,7 +25,6 @@ #include #include -#include #include /* pattern management function arrays */ diff --git a/include/proto/signal.h b/include/proto/signal.h index b2fd2c891c..aaa23f6333 100644 --- a/include/proto/signal.h +++ b/include/proto/signal.h @@ -12,7 +12,6 @@ */ #include -#include #include #include diff --git a/include/proto/spoe.h b/include/proto/spoe.h index b3f7b4f8bb..584b38af86 100644 --- a/include/proto/spoe.h +++ b/include/proto/spoe.h @@ -22,7 +22,7 @@ #ifndef _PROTO_SPOE_H #define _PROTO_SPOE_H -#include +#include #include diff --git a/include/proto/stats.h b/include/proto/stats.h index 5342e12a05..01c08ba136 100644 --- a/include/proto/stats.h +++ b/include/proto/stats.h @@ -23,6 +23,7 @@ #ifndef _PROTO_STATS_H #define _PROTO_STATS_H +#include #include #include #include diff --git a/include/proto/stick_table.h b/include/proto/stick_table.h index dcc29546b7..eab3800b82 100644 --- a/include/proto/stick_table.h +++ b/include/proto/stick_table.h @@ -24,6 +24,7 @@ #define _PROTO_STICK_TABLE_H #include +#include #include #include #include diff --git a/include/proto/task.h b/include/proto/task.h index 05b048b5ab..d5cded3cfa 100644 --- a/include/proto/task.h +++ b/include/proto/task.h @@ -27,8 +27,8 @@ #include #include +#include #include -#include #include #include diff --git a/include/proto/trace.h b/include/proto/trace.h index 1447940573..7a2b5e7e10 100644 --- a/include/proto/trace.h +++ b/include/proto/trace.h @@ -24,6 +24,7 @@ #include #include +#include #include #include #include diff --git a/include/types/checks.h b/include/types/checks.h index 3ea4a06384..243a1ef030 100644 --- a/include/types/checks.h +++ b/include/types/checks.h @@ -16,7 +16,6 @@ #include #include -#include #include #include #include diff --git a/include/types/signal.h b/include/types/signal.h index 838aefd655..70cce77e29 100644 --- a/include/types/signal.h +++ b/include/types/signal.h @@ -18,7 +18,6 @@ #include #include #include -#include /* flags for -> flags */ #define SIG_F_ONE_SHOOT 0x0001 /* unregister handler before calling it */ diff --git a/src/hlua.c b/src/hlua.c index 84fcf8b035..06c45b6c15 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include