summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-11-28 10:27:01 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 19:54:28 -0400
commitf24e6d696aae1cc08cf92a285b56bb6a274efc13 (patch)
tree009e03502c1e30606772a7fc746a55603ea6dc6a /src/buffer.h
parent50bdb55de804953378171cd1caf82bef27ec6cab (diff)
downloadlighttpd-git-f24e6d696aae1cc08cf92a285b56bb6a274efc13.tar.gz
[multiple] plugin_stats array
use global rather than passing around (server *) just for that li_itostrn() and li_utostrn() return string length (rather than requiring subsequent strlen() to find length)
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index ee335597..dc8ae0f1 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -97,8 +97,8 @@ void buffer_append_strftime(buffer *b, const char *format, const struct tm *tm);
/* '-', log_10 (2^bits) = bits * log 2 / log 10 < bits * 0.31, terminating 0 */
#define LI_ITOSTRING_LENGTH (2 + (8 * sizeof(intmax_t) * 31 + 99) / 100)
-void li_itostrn(char *buf, size_t buf_len, intmax_t val);
-void li_utostrn(char *buf, size_t buf_len, uintmax_t val);
+size_t li_itostrn(char *buf, size_t buf_len, intmax_t val);
+size_t li_utostrn(char *buf, size_t buf_len, uintmax_t val);
/* buf must be (at least) 2*s_len + 1 big. uses lower-case hex letters. */
#define li_tohex(buf,buf_len,s,s_len) li_tohex_lc((buf),(buf_len),(s),(s_len))