diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 15:56:52 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 15:56:52 +0000 |
commit | 41124cff3e5e20f7b7542bdfec653ef8e852c306 (patch) | |
tree | a73fb0bfe92f66cb127312a31e29cb69980a77a6 /src | |
parent | be1ffaeca7cdb002d30817383aeb1f47fe9df79b (diff) | |
download | libwapcaplet-41124cff3e5e20f7b7542bdfec653ef8e852c306.tar.gz libwapcaplet-41124cff3e5e20f7b7542bdfec653ef8e852c306.tar.bz2 |
100% of tests pass. Ship it.
svn path=/trunk/libwapcaplet/; revision=6497
Diffstat (limited to 'src')
-rw-r--r-- | src/libwapcaplet.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <string.h> +#include <stdint.h> +#include <assert.h> #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 |