diff options
Diffstat (limited to 'test/tokeniser3.c')
-rw-r--r-- | test/tokeniser3.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/tokeniser3.c b/test/tokeniser3.c index 9f0f84e..949ddd0 100644 --- a/test/tokeniser3.c +++ b/test/tokeniser3.c @@ -30,13 +30,6 @@ typedef struct context { static void run_test(context *ctx); static hubbub_error token_handler(const hubbub_token *token, void *pw); -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - int main(int argc, char **argv) { struct json_object *json; @@ -133,10 +126,9 @@ void run_test(context *ctx) ctx->char_off = 0; assert(parserutils_inputstream_create("UTF-8", 0, NULL, - myrealloc, NULL, &stream) == PARSERUTILS_OK); + &stream) == PARSERUTILS_OK); - assert(hubbub_tokeniser_create(stream, myrealloc, NULL, &tok) == - HUBBUB_OK); + assert(hubbub_tokeniser_create(stream, &tok) == HUBBUB_OK); if (ctx->last_start_tag != NULL) { /* Fake up a start tag, in PCDATA state */ |