More docs

This commit is contained in:
cpq committed 2020-12-08 16:26:17 +00:00
1 parent d1b8f9e01f
commit 94d2e86b60
4 files changed
+882 -7

No files matched your search

+1 -3
View File
@@ -1051,9 +1051,7 @@ struct mg_connection *mg_http_listen(struct mg_mgr *mgr, const char *url,
void mg_iobuf_resize(struct mg_iobuf *io, size_t new_size) {
if (new_size == 0) {
free(io->buf);
io->buf = NULL;
io->len = io->size = 0;
mg_iobuf_free(io);
} else if (new_size != io->size) {
// NOTE(lsm): do not use realloc here. Use malloc/free only, to ease the
// porting to some obscure platforms like FreeRTOS