From 41124cff3e5e20f7b7542bdfec653ef8e852c306 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 14 Feb 2009 15:56:52 +0000 Subject: 100% of tests pass. Ship it. svn path=/trunk/libwapcaplet/; revision=6497 --- src/libwapcaplet.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libwapcaplet.c b/src/libwapcaplet.c index 1b5738b..cc80627 100644 --- a/src/libwapcaplet.c +++ b/src/libwapcaplet.c @@ -7,6 +7,8 @@ */ #include +#include +#include #include "libwapcaplet/libwapcaplet.h" @@ -77,6 +79,8 @@ lwc_error lwc_create_context(lwc_allocator_fn alloc, void *pw, lwc_context **ret) { + assert(alloc); + *ret = alloc(NULL, sizeof(lwc_context), pw); if (*ret == NULL) @@ -193,7 +197,7 @@ lwc_context_intern(lwc_context *ctx, { return __lwc_context_intern(ctx, s, slen, ret, lwc_calculate_hash, - strncmp, memcpy); + strncmp, (lwc_memcpy)memcpy); } lwc_error -- cgit v1.2.3