summaryrefslogtreecommitdiffstats
path: root/utils/lv2info.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 01:50:07 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 01:50:07 +0000
commit1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b (patch)
tree3cc280aae8daa7bf8d64868d1a41976eb845418c /utils/lv2info.c
parent2fdda7eb1b6b5f5582e05c94591a1db44947af18 (diff)
downloadlilv-1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b.tar.gz
lilv-1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b.tar.bz2
lilv-1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b.zip
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4631 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lv2info.c')
-rw-r--r--utils/lv2info.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/lv2info.c b/utils/lv2info.c
index 53ad3d9..3dc7a09 100644
--- a/utils/lv2info.c
+++ b/utils/lv2info.c
@@ -41,7 +41,7 @@ LilvNode* preset_class = NULL;
LilvNode* designation_pred = NULL;
LilvNode* supports_event_pred = NULL;
-void
+static void
print_port(const LilvPlugin* p,
uint32_t index,
float* mins,
@@ -87,10 +87,10 @@ print_port(const LilvPlugin* p,
if (points)
printf("\n\t\tScale Points:\n");
LILV_FOREACH(scale_points, i, points) {
- const LilvScalePoint* p = lilv_scale_points_get(points, i);
+ const LilvScalePoint* point = lilv_scale_points_get(points, i);
printf("\t\t\t%s = \"%s\"\n",
- lilv_node_as_string(lilv_scale_point_get_value(p)),
- lilv_node_as_string(lilv_scale_point_get_label(p)));
+ lilv_node_as_string(lilv_scale_point_get_value(point)),
+ lilv_node_as_string(lilv_scale_point_get_label(point)));
}
lilv_scale_points_free(points);
@@ -140,7 +140,7 @@ print_port(const LilvPlugin* p,
lilv_nodes_free(properties);
}
-void
+static void
print_plugin(LilvWorld* world,
const LilvPlugin* p)
{
@@ -204,9 +204,9 @@ print_plugin(LilvWorld* world,
const char* binary = lilv_node_as_uri(lilv_ui_get_binary_uri(ui));
const LilvNodes* types = lilv_ui_get_classes(ui);
- LILV_FOREACH(nodes, i, types) {
+ LILV_FOREACH(nodes, t, types) {
printf("\t\t\tClass: %s\n",
- lilv_node_as_uri(lilv_nodes_get(types, i)));
+ lilv_node_as_uri(lilv_nodes_get(types, t)));
}
if (binary)
@@ -318,7 +318,7 @@ print_plugin(LilvWorld* world,
free(defaults);
}
-void
+static void
print_version(void)
{
printf(
@@ -329,7 +329,7 @@ print_version(void)
"There is NO WARRANTY, to the extent permitted by law.\n");
}
-void
+static void
print_usage(void)
{
printf(