summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-13 02:04:49 +0000
committerDavid Robillard <d@drobilla.net>2012-04-13 02:04:49 +0000
commit3424f32881e08853e4bd57f0719d798f34718327 (patch)
tree32e17a9cb4e60d5426f113f569fd92e67a25c01a /utils
parent64573a3ccafd5fd0cbb3713420ac42352740d15d (diff)
downloadlilv-3424f32881e08853e4bd57f0719d798f34718327.tar.gz
lilv-3424f32881e08853e4bd57f0719d798f34718327.tar.bz2
lilv-3424f32881e08853e4bd57f0719d798f34718327.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4180 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2info.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/utils/lv2info.c b/utils/lv2info.c
index 0f8a6cb..c359407 100644
--- a/utils/lv2info.c
+++ b/utils/lv2info.c
@@ -113,18 +113,17 @@ print_port(const LilvPlugin* p,
lilv_node_free(name);
LilvNodes* groups = lilv_port_get_value(p, port, group_pred);
- if (lilv_nodes_size(groups) > 0)
+ if (lilv_nodes_size(groups) > 0) {
printf("\t\tGroup: %s\n",
- lilv_node_as_string(
- lilv_nodes_get(groups, lilv_nodes_begin(groups))));
+ lilv_node_as_string(lilv_nodes_get_first(groups)));
+ }
lilv_nodes_free(groups);
LilvNodes* designations = lilv_port_get_value(p, port, designation_pred);
- if (lilv_nodes_size(designations) > 0)
+ if (lilv_nodes_size(designations) > 0) {
printf("\t\tDesignation: %s\n",
- lilv_node_as_string(
- lilv_nodes_get(designations,
- lilv_nodes_begin(designations))));
+ lilv_node_as_string(lilv_nodes_get_first(designations)));
+ }
lilv_nodes_free(designations);
if (lilv_port_is_a(p, port, control_class)) {