kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 51c8188f7aec451550e7bfdd443ed0f936001df3
parent 9c7aaf179fbb1be3cd467340730d6bb418cd4662
Author: Joris Vink <joris@coders.se>
Date:   Sat, 13 Jul 2013 21:47:04 +0200

remove cast for malloc + add missing stdlib.h

Diffstat:
src/mem.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mem.c b/src/mem.c @@ -14,6 +14,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <stdlib.h> + #include "kore.h" #define KORE_MEM_MAGIC 0xd0d0 @@ -46,7 +48,7 @@ kore_malloc(size_t len) struct meminfo *mem; mlen = sizeof(struct meminfo) + len; - if ((mem = (struct meminfo *)malloc(mlen)) == NULL) + if ((mem = malloc(mlen)) == NULL) fatal("kore_malloc(%d): %d", len, errno); mem->clen = len;