summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-05 17:05:34 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2016-02-05 17:05:34 (GMT)
commit13c7b9e97fc02cfb55e35340537f04c1fe309090 (patch)
tree23929d9dde299608ccce4dea434ccc7a8a367fd0
parentc02718070450fb819b42b011b1b083b83a0b2bdf (diff)
downloadlibdom-13c7b9e97fc02cfb55e35340537f04c1fe309090.tar.gz
libdom-13c7b9e97fc02cfb55e35340537f04c1fe309090.tar.bz2
Cleanup: Remove odd declaration of callback outside header guard.
-rw-r--r--src/html/html_map_element.c2
-rw-r--r--src/html/html_map_element.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/html/html_map_element.c b/src/html/html_map_element.c
index 5ecbb5c..3b10222 100644
--- a/src/html/html_map_element.c
+++ b/src/html/html_map_element.c
@@ -190,7 +190,7 @@ dom_exception dom_html_map_element_set_##attr( \
SIMPLE_GET_SET(name);
/* The callback function for _dom_html_collection_create*/
-bool callback(struct dom_node_internal *node, void *ctx)
+static bool callback(struct dom_node_internal *node, void *ctx)
{
if(node->type == DOM_ELEMENT_NODE &&
dom_string_caseless_isequal(node->name,
diff --git a/src/html/html_map_element.h b/src/html/html_map_element.h
index 031a032..7e0e3dc 100644
--- a/src/html/html_map_element.h
+++ b/src/html/html_map_element.h
@@ -59,5 +59,3 @@ dom_exception _dom_html_map_element_copy_internal(
(dom_html_map_element *) (n))
#endif
-
-bool callback(struct dom_node_internal *node, void *ctx);