From 2867159d637bd64fa177f33654dd0e38604604d5 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 4 Jun 2020 20:22:59 +0200 Subject: [PATCH] REORG: include: move lb_map.h to haproxy/lb_map{,-t}.h Nothing was changed. --- include/{types/lb_map.h => haproxy/lb_map-t.h} | 8 ++++---- include/{proto => haproxy}/lb_map.h | 8 ++++---- include/types/backend.h | 2 +- src/backend.c | 2 +- src/cfgparse.c | 2 +- src/lb_map.c | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) rename include/{types/lb_map.h => haproxy/lb_map-t.h} (90%) rename include/{proto => haproxy}/lb_map.h (91%) diff --git a/include/types/lb_map.h b/include/haproxy/lb_map-t.h similarity index 90% rename from include/types/lb_map.h rename to include/haproxy/lb_map-t.h index 5409a8152c..b2c556cabb 100644 --- a/include/types/lb_map.h +++ b/include/haproxy/lb_map-t.h @@ -1,5 +1,5 @@ /* - * include/types/lb_map.h + * include/haproxy/lb_map-t.h * Types for map-based load-balancing (RR and HASH) * * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _TYPES_LB_MAP_H -#define _TYPES_LB_MAP_H +#ifndef _HAPROXY_LB_MAP_T_H +#define _HAPROXY_LB_MAP_T_H #include #include @@ -30,7 +30,7 @@ struct lb_map { int rr_idx; /* next server to be elected in round robin mode */ }; -#endif /* _TYPES_LB_MAP_H */ +#endif /* _HAPROXY_LB_MAP_T_H */ /* * Local variables: diff --git a/include/proto/lb_map.h b/include/haproxy/lb_map.h similarity index 91% rename from include/proto/lb_map.h rename to include/haproxy/lb_map.h index 0dc089bc7e..2ab7158c24 100644 --- a/include/proto/lb_map.h +++ b/include/haproxy/lb_map.h @@ -1,5 +1,5 @@ /* - * include/proto/lb_map.h + * include/haproxy/lb_map.h * Map-based load-balancing (RR and HASH) * * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _PROTO_LB_MAP_H -#define _PROTO_LB_MAP_H +#ifndef _HAPROXY_LB_MAP_H +#define _HAPROXY_LB_MAP_H #include #include @@ -31,7 +31,7 @@ void init_server_map(struct proxy *p); struct server *map_get_server_rr(struct proxy *px, struct server *srvtoavoid); struct server *map_get_server_hash(struct proxy *px, unsigned int hash); -#endif /* _PROTO_LB_MAP_H */ +#endif /* _HAPROXY_LB_MAP_H */ /* * Local variables: diff --git a/include/types/backend.h b/include/types/backend.h index 8a1f3bd11d..120081f7b2 100644 --- a/include/types/backend.h +++ b/include/types/backend.h @@ -26,10 +26,10 @@ #include #include #include +#include #include #include -#include #include /* Parameters for lbprm.algo */ diff --git a/src/backend.c b/src/backend.c index f787427716..838769425e 100644 --- a/src/backend.c +++ b/src/backend.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -44,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/src/cfgparse.c b/src/cfgparse.c index e3d33edb18..429954ca18 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -70,7 +71,6 @@ #include #include #include -#include #include #include #include diff --git a/src/lb_map.c b/src/lb_map.c index c5e0f89d61..2b00fdb59d 100644 --- a/src/lb_map.c +++ b/src/lb_map.c @@ -11,12 +11,12 @@ */ #include +#include #include #include #include -#include #include /* this function updates the map according to server 's new state. -- 2.47.3