Mercurial > hg > th-libs
changeset 120:41c2638ee537
Use void* instead of uint8_t* in th_growbuf_put_str()
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2014 01:25:35 +0300 |
parents | 38a39a9e3a1d |
children | 8c39e8e90dbd |
files | th_util.c th_util.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/th_util.c Sun Jun 22 00:07:25 2014 +0300 +++ b/th_util.c Sun Jun 22 01:25:35 2014 +0300 @@ -689,7 +689,7 @@ } -BOOL th_growbuf_put_str(th_growbuf_t *buf, const uint8_t *s, const size_t len) +BOOL th_growbuf_put_str(th_growbuf_t *buf, const void *s, const size_t len) { if (s == NULL) return FALSE;
--- a/th_util.h Sun Jun 22 00:07:25 2014 +0300 +++ b/th_util.h Sun Jun 22 01:25:35 2014 +0300 @@ -218,7 +218,7 @@ BOOL th_growbuf_grow(th_growbuf_t *buf, const size_t grow); BOOL th_growbuf_puts(th_growbuf_t *buf, const char *str, BOOL eos); BOOL th_growbuf_putch(th_growbuf_t *buf, const char ch); -BOOL th_growbuf_put_str(th_growbuf_t *buf, const uint8_t *s, const size_t len); +BOOL th_growbuf_put_str(th_growbuf_t *buf, const void *s, const size_t len); BOOL th_growbuf_put_u8(th_growbuf_t *buf, const uint8_t val); BOOL th_growbuf_put_u16_be(th_growbuf_t *buf, const uint16_t val); BOOL th_growbuf_put_u16_le(th_growbuf_t *buf, const uint16_t val);