# HG changeset patch # User Matti Hamalainen # Date 1578767740 -7200 # Node ID 935ee9a9f63119085fe9620108bb04b74b3cce38 # Parent 4d12924f9544fa6573a2fb320e6a51aae86581a9 Change 'ch' argument of th_strbuf_putch from char to uint8_t. diff -r 4d12924f9544 -r 935ee9a9f631 th_datastruct.c --- 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; diff -r 4d12924f9544 -r 935ee9a9f631 th_datastruct.h --- 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);