From 3424f32881e08853e4bd57f0719d798f34718327 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 Apr 2012 02:04:49 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4180 a436a847-0d15-0410-975c-d299462d15a1 --- utils/lv2info.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'utils/lv2info.c') 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)) { -- cgit v1.2.1