diff options
author | Neil Conway | 2004-10-13 01:26:42 +0000 |
---|---|---|
committer | Neil Conway | 2004-10-13 01:26:42 +0000 |
commit | 04a1a24e9c070cb53343253834699e7d3f5a3531 (patch) | |
tree | b2742b37fcc179d62e3ca47b5080ad50c3154916 /contrib/xml | |
parent | 7069dbcc317c287f98e55d5296ff7ca77fadab49 (diff) |
Cleanup some unnecessary void * casts when using pfree() in contrib/xml
and contrib/xml2
Diffstat (limited to 'contrib/xml')
-rw-r--r-- | contrib/xml/pgxml_dom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/xml/pgxml_dom.c b/contrib/xml/pgxml_dom.c index 2b11b1d646..47913647d3 100644 --- a/contrib/xml/pgxml_dom.c +++ b/contrib/xml/pgxml_dom.c @@ -47,7 +47,7 @@ pgxml_repalloc(void *ptr, size_t size) static void pgxml_pfree(void *ptr) { - return pfree(ptr); + pfree(ptr); } static char * @@ -216,7 +216,7 @@ pgxml_xpath(PG_FUNCTION_ARGS) { elog(WARNING, "XPath syntax error"); xmlFreeDoc(doctree); - pfree((void *) xpath); + pfree(xpath); xmlCleanupParser(); PG_RETURN_NULL(); } @@ -228,7 +228,7 @@ pgxml_xpath(PG_FUNCTION_ARGS) if (res == NULL) { xmlFreeDoc(doctree); - pfree((void *) xpath); + pfree(xpath); xmlCleanupParser(); PG_RETURN_NULL(); /* seems appropriate */ } @@ -258,7 +258,7 @@ pgxml_xpath(PG_FUNCTION_ARGS) /* Free various storage */ xmlFreeDoc(doctree); - pfree((void *) xpath); + pfree(xpath); xmlFree(xpresstr); xmlCleanupParser(); PG_RETURN_TEXT_P(xpres); |