aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-10 21:41:09 +0000
committerDavid Robillard <d@drobilla.net>2011-02-10 21:41:09 +0000
commit7e6fa773dba243e3cf11b98d223f6d417e73aa66 (patch)
treef2eb6ce20fc706ecc5c0849d899c32d373771971 /src/serdi.c
parentdccceaf112ac67460532dcced9007462bea3a0de (diff)
downloadserd-7e6fa773dba243e3cf11b98d223f6d417e73aa66.tar.gz
serd-7e6fa773dba243e3cf11b98d223f6d417e73aa66.tar.bz2
serd-7e6fa773dba243e3cf11b98d223f6d417e73aa66.zip
Make serd_uri_resolve return void, since it has no error case anyway.
git-svn-id: http://svn.drobilla.net/serd/trunk@96 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/serdi.c b/src/serdi.c
index e85c9f70..ed64dfb8 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -51,10 +51,7 @@ event_base(void* handle,
}
SerdURI abs_base_uri;
- if (!serd_uri_resolve(&base_uri, &state->base_uri, &abs_base_uri)) {
- fprintf(stderr, "error: failed to resolve new base URI\n");
- return false;
- }
+ serd_uri_resolve(&base_uri, &state->base_uri, &abs_base_uri);
base_uri_node = serd_node_new_uri(&abs_base_uri, &base_uri);
serd_node_free(&state->base_uri_node);
@@ -76,9 +73,7 @@ event_prefix(void* handle,
return false;
}
SerdURI abs_uri;
- if (!serd_uri_resolve(&uri, &state->base_uri, &abs_uri)) {
- return false;
- }
+ serd_uri_resolve(&uri, &state->base_uri, &abs_uri);
SerdURI base_uri;
SerdNode base_uri_node = serd_node_new_uri(&abs_uri, &base_uri);
serd_env_add(state->env, name, &base_uri_node);