From: Willy Tarreau Date: Wed, 27 May 2020 15:32:53 +0000 (+0200) Subject: REORG: include: move istbuf.h to haproxy/ X-Git-Tag: v2.2-dev9~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0f1c80dafcbcd533b05347caa2d085c9a1a4bb7;p=thirdparty%2Fhaproxy.git REORG: include: move istbuf.h to haproxy/ This one now relies on two files that were already cleaned up and is only used by buffer.h. --- diff --git a/include/common/buffer.h b/include/common/buffer.h index 6e7adf4b9a..2f5f882534 100644 --- a/include/common/buffer.h +++ b/include/common/buffer.h @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/common/istbuf.h b/include/haproxy/istbuf.h similarity index 96% rename from include/common/istbuf.h rename to include/haproxy/istbuf.h index 074efe0dd1..392ec46221 100644 --- a/include/common/istbuf.h +++ b/include/haproxy/istbuf.h @@ -1,8 +1,8 @@ /* - * include/common/istbuf.h + * include/haproxy/istbuf.h * Functions used to manipulate indirect strings with wrapping buffers. * - * Copyright (C) 2000-2018 Willy Tarreau - w@1wt.eu + * Copyright (C) 2000-2020 Willy Tarreau - w@1wt.eu * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -25,12 +25,12 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef _COMMON_ISTBUF_H -#define _COMMON_ISTBUF_H +#ifndef _HAPROXY_ISTBUF_H +#define _HAPROXY_ISTBUF_H -#include -#include +#include #include +#include /* b_isteq() : returns > 0 if the first characters of buffer starting @@ -152,7 +152,7 @@ static inline struct buffer ist2buf(const struct ist ist) return buf; } -#endif /* _COMMON_ISTBUF_H */ +#endif /* _HAPROXY_ISTBUF_H */ /* * Local variables: diff --git a/src/fcgi.c b/src/fcgi.c index b2f6e4283e..8cfb6d0a55 100644 --- a/src/fcgi.c +++ b/src/fcgi.c @@ -26,6 +26,7 @@ #include #include +#include /* Encodes header of a FCGI record into the chunk . It returns non-zero on * success and 0 on failure (buffer full). is a chunk, so the wrapping is