summaryrefslogtreecommitdiff
path: root/test/tokeniser2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tokeniser2.c')
-rw-r--r--test/tokeniser2.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/tokeniser2.c b/test/tokeniser2.c
index 443b71d..c8ab9c0 100644
--- a/test/tokeniser2.c
+++ b/test/tokeniser2.c
@@ -32,13 +32,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;
@@ -135,10 +128,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 */