Mercurial > hg > th-libs
changeset 581:935ee9a9f631
Change 'ch' argument of th_strbuf_putch from char to uint8_t.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jan 2020 20:35:40 +0200 |
parents | 4d12924f9544 |
children | 8c516309037e |
files | th_datastruct.c th_datastruct.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/th_datastruct.c Thu Jan 09 21:15:54 2020 +0200 +++ b/th_datastruct.c Sat Jan 11 20:35:40 2020 +0200 @@ -555,7 +555,7 @@ } -BOOL th_strbuf_putch(char **buf, size_t *bufsize, size_t *len, const char ch) +BOOL th_strbuf_putch(char **buf, size_t *bufsize, size_t *len, const uint8_t ch) { if (!th_strbuf_grow(buf, bufsize, len, 1)) return FALSE;
--- a/th_datastruct.h Thu Jan 09 21:15:54 2020 +0200 +++ b/th_datastruct.h Sat Jan 11 20:35:40 2020 +0200 @@ -80,7 +80,7 @@ /* Simple growing string buffer */ BOOL th_strbuf_grow(char **buf, size_t *bufsize, size_t *len, const size_t grow); -BOOL th_strbuf_putch(char **buf, size_t *bufsize, size_t *len, const char ch); +BOOL th_strbuf_putch(char **buf, size_t *bufsize, size_t *len, const uint8_t ch); BOOL th_strbuf_putsn(char **buf, size_t *bufsize, size_t *len, const char *str, const size_t slen); BOOL th_strbuf_puts(char **buf, size_t *bufsize, size_t *len, const char *str);