]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ist: Remove unused `count` argument from `ist2str*`
authorTim Duesterhus <tim@bastelstu.be>
Sat, 3 Apr 2021 18:39:21 +0000 (20:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Apr 2021 17:40:59 +0000 (19:40 +0200)
This argument is not being used inside the function (and the functions
themselves are unused as well) and not documented. Its purpose is not clear.
Just remove it.

include/import/ist.h

index a19e2280230db9e098f9ed6ce74edf887bdb5d7f..af9bbac3cf38a1fa48d0b6e5c502a2ece7da1015 100644 (file)
@@ -554,7 +554,7 @@ static inline struct ist ist2bin(char *dst, const struct ist src)
  * already been checked. An ist made of the output and its length (not counting
  * the trailing zero) are returned.
  */
-static inline struct ist ist2str(char *dst, const struct ist src, size_t count)
+static inline struct ist ist2str(char *dst, const struct ist src)
 {
        size_t ofs = 0;
 
@@ -599,7 +599,7 @@ static inline struct ist ist2bin_lc(char *dst, const struct ist src)
  * the frame length has already been checked. An ist made of the output and its
  * length (not counting the trailing zero) are returned.
  */
-static inline struct ist ist2str_lc(char *dst, const struct ist src, size_t count)
+static inline struct ist ist2str_lc(char *dst, const struct ist src)
 {
        size_t ofs = 0;
 
@@ -644,7 +644,7 @@ static inline struct ist ist2bin_uc(char *dst, const struct ist src)
  * the frame length has already been checked. An ist made of the output and its
  * length (not counting the trailing zero) are returned.
  */
-static inline struct ist ist2str_uc(char *dst, const struct ist src, size_t count)
+static inline struct ist ist2str_uc(char *dst, const struct ist src)
 {
        size_t ofs = 0;