diff --git a/include/types/lb_chash.h b/include/haproxy/lb_chash-t.h similarity index 89% rename from include/types/lb_chash.h rename to include/haproxy/lb_chash-t.h index a57a229ca..ac615b354 100644 --- a/include/types/lb_chash.h +++ b/include/haproxy/lb_chash-t.h @@ -1,5 +1,5 @@ /* - * include/types/lb_chash.h + * include/haproxy/lb_chash-t.h * Types for Consistent Hash LB 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_CHASH_H -#define _TYPES_LB_CHASH_H +#ifndef _HAPROXY_LB_CHASH_T_H +#define _HAPROXY_LB_CHASH_T_H -#include #include #include @@ -32,7 +31,7 @@ struct lb_chash { struct eb32_node *last; /* last node found in case of round robin (or NULL) */ }; -#endif /* _TYPES_LB_CHASH_H */ +#endif /* _HAPROXY_LB_CHASH_T_H */ /* * Local variables: diff --git a/include/proto/lb_chash.h b/include/haproxy/lb_chash.h similarity index 88% rename from include/proto/lb_chash.h rename to include/haproxy/lb_chash.h index 0a44967f3..0d6410d40 100644 --- a/include/proto/lb_chash.h +++ b/include/haproxy/lb_chash.h @@ -1,5 +1,5 @@ /* - * include/proto/lb_chash.h + * include/haproxy/lb_chash.h * Function declarations for Consistent Hash LB algorithm. * * Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu @@ -19,10 +19,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _PROTO_LB_CHASH_H -#define _PROTO_LB_CHASH_H +#ifndef _HAPROXY_LB_CHASH_H +#define _HAPROXY_LB_CHASH_H #include +#include #include #include @@ -30,7 +31,7 @@ void chash_init_server_tree(struct proxy *p); struct server *chash_get_next_server(struct proxy *p, struct server *srvtoavoid); struct server *chash_get_server_hash(struct proxy *p, unsigned int hash, const struct server *avoid); -#endif /* _PROTO_LB_CHASH_H */ +#endif /* _HAPROXY_LB_CHASH_H */ /* * Local variables: diff --git a/include/types/backend.h b/include/types/backend.h index 1e2b9df34..9f14762cc 100644 --- a/include/types/backend.h +++ b/include/types/backend.h @@ -22,10 +22,10 @@ #ifndef _TYPES_BACKEND_H #define _TYPES_BACKEND_H +#include #include #include -#include #include #include #include diff --git a/src/backend.c b/src/backend.c index f8b8ddb05..8fe0038ac 100644 --- a/src/backend.c +++ b/src/backend.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -37,7 +38,6 @@ #include #include #include -#include #include #include #include diff --git a/src/cfgparse.c b/src/cfgparse.c index 119a5edc6..406ac423e 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -63,7 +64,6 @@ #include #include #include -#include #include #include #include