summaryrefslogtreecommitdiff
path: root/test/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser.c')
-rw-r--r--test/parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parser.c b/test/parser.c
index 63e39ff..1ab77d7 100644
--- a/test/parser.c
+++ b/test/parser.c
@@ -10,7 +10,7 @@
#include "testutils.h"
-static void token_handler(const hubbub_token *token, void *pw);
+static hubbub_error token_handler(const hubbub_token *token, void *pw);
static void *myrealloc(void *ptr, size_t len, void *pw)
{
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
return 0;
}
-void token_handler(const hubbub_token *token, void *pw)
+hubbub_error token_handler(const hubbub_token *token, void *pw)
{
static const char *token_names[] = {
"DOCTYPE", "START TAG", "END TAG",
@@ -170,4 +170,6 @@ void token_handler(const hubbub_token *token, void *pw)
printf("\n");
break;
}
+
+ return HUBBUB_OK;
}