summaryrefslogtreecommitdiff
path: root/src/raptor_sax2.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2010-01-08 16:14:50 -0800
committerDave Beckett <dave@dajobe.org>2010-01-08 16:14:50 -0800
commitffcd70e2050abffd34a0bc2f05396572f3f91b2f (patch)
tree709a0a3a7d890ab9ce21a45fa2fffde26b2d0403 /src/raptor_sax2.c
parent937b645fb9c17761e729e91517d3395e3a65114c (diff)
downloadraptor-ffcd70e2050abffd34a0bc2f05396572f3f91b2f.tar.gz
raptor_namespaces_init_v2 loses error_handler / error_data
(raptor_log_error_formatted): Added to write a formatted error message with sprintf style. raptor_namespace_stack: loses error_handler and error_data fields. (raptor_namespaces_init_v2): Remove error_handler and error_data args. (raptor_new_namespace_from_uri): Use raptor_log_error_formatted to format an error message with argument. Update all calls to raptor_namespaces_init_v2 to remove error handler/data args.
Diffstat (limited to 'src/raptor_sax2.c')
-rw-r--r--src/raptor_sax2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/raptor_sax2.c b/src/raptor_sax2.c
index 57dd1596..79f0309b 100644
--- a/src/raptor_sax2.c
+++ b/src/raptor_sax2.c
@@ -453,10 +453,7 @@ raptor_sax2_parse_start(raptor_sax2* sax2, raptor_uri *base_uri)
raptor_namespaces_clear(&sax2->namespaces);
- if(raptor_namespaces_init_v2(sax2->world,
- &sax2->namespaces,
- (raptor_simple_message_handler)raptor_sax2_simple_error, sax2,
- 1)) {
+ if(raptor_namespaces_init_v2(sax2->world, &sax2->namespaces, 1)) {
/* log a fatal error and set sax2 to failed state
since the function signature does not currently support returning an error */
raptor_log_error_to_handlers(sax2->world,