diff options
author | David Robillard <d@drobilla.net> | 2011-01-29 01:21:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-29 01:21:35 +0000 |
commit | ddfa4486e212909fcdcfa2c39328cb4a06f346d3 (patch) | |
tree | e040cd1ee202ed46301450b2ac5a1e3d2d5ff84a /src/sordi.c | |
parent | 0de7496ff56970662611f31355aa9828a80a4cd0 (diff) | |
download | sord-ddfa4486e212909fcdcfa2c39328cb4a06f346d3.tar.gz sord-ddfa4486e212909fcdcfa2c39328cb4a06f346d3.tar.bz2 sord-ddfa4486e212909fcdcfa2c39328cb4a06f346d3.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/sord/trunk@12 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sordi.c')
-rw-r--r-- | src/sordi.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sordi.c b/src/sordi.c index 8b5a213..9220c54 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -65,9 +65,9 @@ file_sink(const void* buf, size_t len, void* stream) static inline SerdNode serd_node_from_sord_node(const SordNode n) { - size_t n_bytes = 0; - const char* buf = sord_node_get_string_counted(n, &n_bytes); - SerdNode sn = { SERD_NOTHING, n_bytes, n_bytes - 1, (const uint8_t*)buf }; + size_t n_bytes = 0; + const char* buf = sord_node_get_string_counted(n, &n_bytes); + SerdNode sn = { SERD_NOTHING, n_bytes, n_bytes - 1, (const uint8_t*)buf }; // FIXME: UTF-8 switch (sord_node_get_type(n)) { case SORD_URI: @@ -143,11 +143,6 @@ main(int argc, char** argv) sord_iter_get(iter, tup); SordNode s, p, o; sord_tuple_load(sord, tup, &s, &p, &o); - /*printf("%s %s %s .\n", - sord_node_get_string(s), - sord_node_get_string(p), - sord_node_get_string(o));*/ - SerdNode ss = serd_node_from_sord_node(s); SerdNode sp = serd_node_from_sord_node(p); SerdNode so = serd_node_from_sord_node(o); |