]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ist: Rename istappend() to __istappend()
authorTim Duesterhus <tim@bastelstu.be>
Thu, 8 Apr 2021 17:28:16 +0000 (19:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Apr 2021 17:35:52 +0000 (19:35 +0200)
Indicate that this function is not inherently safe by adding two underscores as
a prefix.

include/import/ist.h

index daf23d55218bd66e72a4deeccd50d9e0bb03a1dd..a19e2280230db9e098f9ed6ce74edf887bdb5d7f 100644 (file)
@@ -425,7 +425,7 @@ static inline int istneq(const struct ist ist1, const struct ist ist2, size_t co
 /* appends <src> after <dst>. The caller must ensure that the underlying buffer
  * is large enough to fit the character.
  */
-static inline struct ist istappend(struct ist dst, const char src)
+static inline struct ist __istappend(struct ist dst, const char src)
 {
        dst.ptr[dst.len++] = src;