Skip to content

Commit 2ab24b0

Browse files
committed
Remove unused arguments from _external_entity_ref_handler()
1 parent 8e1561c commit 2ab24b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/xml/compat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ _build_entity(const xmlChar *name, size_t len, xmlChar **entity, size_t *entity_
330330
}
331331

332332
static void
333-
_external_entity_ref_handler(void *user, const xmlChar *names, int type, const xmlChar *sys_id, const xmlChar *pub_id, xmlChar *content)
333+
_external_entity_ref_handler(void *user, const xmlChar *names, const xmlChar *sys_id, const xmlChar *pub_id)
334334
{
335335
XML_Parser parser = (XML_Parser) user;
336336

@@ -374,7 +374,7 @@ _get_entity(void *user, const xmlChar *name)
374374
}
375375
} else {
376376
if (ret->etype == XML_EXTERNAL_GENERAL_PARSED_ENTITY) {
377-
_external_entity_ref_handler(user, ret->name, ret->etype, ret->SystemID, ret->ExternalID, NULL);
377+
_external_entity_ref_handler(user, ret->name, ret->SystemID, ret->ExternalID);
378378
}
379379
}
380380
}

0 commit comments

Comments
 (0)