From: Tim Duesterhus Date: Sat, 3 Apr 2021 18:39:21 +0000 (+0200) Subject: CLEANUP: ist: Remove unused `count` argument from `ist2str*` X-Git-Tag: v2.4-dev16~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fea59fcf7903bc65d3f3579687a774100d837cb0;p=thirdparty%2Fhaproxy.git CLEANUP: ist: Remove unused `count` argument from `ist2str*` 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. --- diff --git a/include/import/ist.h b/include/import/ist.h index a19e228023..af9bbac3cf 100644 --- a/include/import/ist.h +++ b/include/import/ist.h @@ -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;