diff options
author | David Robillard <d@drobilla.net> | 2012-02-21 00:24:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-21 00:24:59 +0000 |
commit | ae46d9dfd96b05ddf876465f2c5a8cdd5f742ab0 (patch) | |
tree | f9e8eb6bb20e9b6b125005d93106466df9cae0bc /src/env.c | |
parent | 3b8b0a4732ce3122c229f7a3d327a0f916255e97 (diff) | |
download | serd-ae46d9dfd96b05ddf876465f2c5a8cdd5f742ab0.tar.gz serd-ae46d9dfd96b05ddf876465f2c5a8cdd5f742ab0.tar.bz2 serd-ae46d9dfd96b05ddf876465f2c5a8cdd5f742ab0.zip |
Print command name in serdi error messages.
Trim code.
git-svn-id: http://svn.drobilla.net/serd/trunk@313 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/env.c')
-rw-r--r-- | src/env.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -156,9 +156,7 @@ serd_env_set_prefix_from_strings(SerdEnv* env, const SerdNode name_node = serd_node_from_string(SERD_LITERAL, name); const SerdNode uri_node = serd_node_from_string(SERD_URI, uri); - SerdStatus ret = serd_env_set_prefix(env, &name_node, &uri_node); - - return ret; + return serd_env_set_prefix(env, &name_node, &uri_node); } static inline bool @@ -267,8 +265,6 @@ serd_env_foreach(const SerdEnv* env, void* handle) { for (size_t i = 0; i < env->n_prefixes; ++i) { - func(handle, - &env->prefixes[i].name, - &env->prefixes[i].uri); + func(handle, &env->prefixes[i].name, &env->prefixes[i].uri); } } |