diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/tokeniser2.c | 2 | ||||
-rw-r--r-- | test/tree2.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/tokeniser2.c b/test/tokeniser2.c index eb369b4..82fc69c 100644 --- a/test/tokeniser2.c +++ b/test/tokeniser2.c @@ -311,7 +311,7 @@ void token_handler(const hubbub_token *token, void *pw) printf("\tsystem: '%.*s' (%d)\n", (int) token->data.doctype.system_id.len, gotsys, - token->data.doctype.system_id.len); + (int) token->data.doctype.system_id.len); } assert(token->data.doctype.name.len == strlen(expname)); diff --git a/test/tree2.c b/test/tree2.c index 6ec0659..c50b519 100644 --- a/test/tree2.c +++ b/test/tree2.c @@ -489,7 +489,7 @@ int append_child(void *ctx, void *parent, void *child, void **result) tchild->next = tchild->prev = NULL; #ifndef NDEBUG - printf("appending (%x):\n", (unsigned)tchild); + printf("appending (%p):\n", (void *) tchild); node_print(NULL, tchild, 0); printf("to:\n"); if (parent != (void *)1) @@ -546,7 +546,7 @@ int insert_before(void *ctx, void *parent, void *child, void *ref_child, node_t *tref = ref_child; #ifndef NDEBUG - printf("inserting (%x):\n", (unsigned)tchild); + printf("inserting (%p):\n", (void *) tchild); node_print(NULL, tchild, 0); printf("before:\n"); node_print(NULL, tref, 0); |