From 0254941666e76ac607029db32acac95e0e6b565a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 4 Jun 2020 14:41:04 +0200 Subject: [PATCH] REORG: include: move lb_fwlc.h to haproxy/lb_fwlc{,-t}.h Nothing fancy, includes were already OK. The proto didn't reference the type, this was fixed. Still references proxy.h and server.h from types/. --- include/{types/lb_fwlc.h => haproxy/lb_fwlc-t.h} | 9 ++++----- include/{proto => haproxy}/lb_fwlc.h | 9 +++++---- include/types/backend.h | 2 +- src/backend.c | 2 +- src/cfgparse.c | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) rename include/{types/lb_fwlc.h => haproxy/lb_fwlc-t.h} (89%) rename include/{proto => haproxy}/lb_fwlc.h (88%) diff --git a/include/types/lb_fwlc.h b/include/haproxy/lb_fwlc-t.h similarity index 89% rename from include/types/lb_fwlc.h rename to include/haproxy/lb_fwlc-t.h index c87d61ed3..e5064be11 100644 --- a/include/types/lb_fwlc.h +++ b/include/haproxy/lb_fwlc-t.h @@ -1,5 +1,5 @@ /* - * include/types/lb_fwlc.h + * include/haproxy/lb_fwlc-t.h * Types for Fast Weighted Least Connection load balancing algorithm. * * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu @@ -19,10 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _TYPES_LB_FWLC_H -#define _TYPES_LB_FWLC_H +#ifndef _HAPROXY_LB_FWLC_T_H +#define _HAPROXY_LB_FWLC_T_H -#include #include struct lb_fwlc { @@ -30,7 +29,7 @@ struct lb_fwlc { struct eb_root bck; /* weighted least conns on the backup servers */ }; -#endif /* _TYPES_LB_FWLC_H */ +#endif /* _HAPROXY_LB_FWLC_T_H */ /* * Local variables: diff --git a/include/proto/lb_fwlc.h b/include/haproxy/lb_fwlc.h similarity index 88% rename from include/proto/lb_fwlc.h rename to include/haproxy/lb_fwlc.h index a7a46fff7..5a549e376 100644 --- a/include/proto/lb_fwlc.h +++ b/include/haproxy/lb_fwlc.h @@ -1,5 +1,5 @@ /* - * include/proto/lb_fwlc.h + * include/haproxy/lb_fwlc.h * Fast Weighted Least Connection load balancing algorithm. * * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu @@ -19,17 +19,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _PROTO_LB_FWLC_H -#define _PROTO_LB_FWLC_H +#ifndef _HAPROXY_LB_FWLC_H +#define _HAPROXY_LB_FWLC_H #include +#include #include #include struct server *fwlc_get_next_server(struct proxy *p, struct server *srvtoavoid); void fwlc_init_server_tree(struct proxy *p); -#endif /* _PROTO_LB_FWLC_H */ +#endif /* _HAPROXY_LB_FWLC_H */ /* * Local variables: diff --git a/include/types/backend.h b/include/types/backend.h index b06dfef7c..19a45f033 100644 --- a/include/types/backend.h +++ b/include/types/backend.h @@ -24,10 +24,10 @@ #include #include +#include #include #include -#include #include #include #include diff --git a/src/backend.c b/src/backend.c index acb80fabe..bbf967231 100644 --- a/src/backend.c +++ b/src/backend.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -39,7 +40,6 @@ #include #include #include -#include #include #include #include diff --git a/src/cfgparse.c b/src/cfgparse.c index cde7ac00b..6571b85de 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -65,7 +66,6 @@ #include #include #include -#include #include #include #include