Add docs to GBuf

This commit is contained in:
Nils O. Selåsdal
2012-11-08 20:03:38 +01:00
parent abf9a01fd8
commit 19469a4108
2 changed files with 55 additions and 12 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ uc_gbuf_append(GBuf *buf,void *data,size_t len)
unsigned char *gbuf;
if(buf->len - buf->used < len)
if(uc_grow_gbuf(buf, len + len/2))
if(uc_gbuf_grow(buf, len + len/2))
return -1;
gbuf = buf->buf;
@@ -58,7 +58,7 @@ uc_gbuf_append(GBuf *buf,void *data,size_t len)
}
int
uc_grow_gbuf(GBuf *buf, size_t addlen)
uc_gbuf_grow(GBuf *buf, size_t addlen)
{
void *tmp;
size_t newsz;