diff options
Diffstat (limited to 'test/tokeniser.c')
-rw-r--r-- | test/tokeniser.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/tokeniser.c b/test/tokeniser.c index 717e34e..1cac0af 100644 --- a/test/tokeniser.c +++ b/test/tokeniser.c @@ -13,13 +13,6 @@ 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) { parserutils_inputstream *stream; @@ -36,10 +29,9 @@ int main(int argc, char **argv) } 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); params.token_handler.handler = token_handler; params.token_handler.pw = NULL; |