diff options
author | David Robillard <d@drobilla.net> | 2012-08-09 01:54:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-09 01:54:51 +0000 |
commit | a4cbf25e28fece665a13fd8a2b95e3f81c47dd25 (patch) | |
tree | 11ea80f2e3e650c518be8eb3db5d37e8ae9b9db9 /src/jalv_gtk.c | |
parent | 95e60167daade2ad3890812df8ca7e76b1340118 (diff) | |
download | jalv-a4cbf25e28fece665a13fd8a2b95e3f81c47dd25.tar.gz jalv-a4cbf25e28fece665a13fd8a2b95e3f81c47dd25.tar.bz2 jalv-a4cbf25e28fece665a13fd8a2b95e3f81c47dd25.zip |
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4634 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv_gtk.c')
-rw-r--r-- | src/jalv_gtk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index 76e1bb3..f853c46 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -141,7 +141,7 @@ typedef struct { LilvNode* preset; } PresetRecord; -char* +static char* symbolify(const char* in) { const size_t len = strlen(in); @@ -458,8 +458,8 @@ build_control_widget(Jalv* jalv, GtkWidget* window) points = g_hash_table_new(g_double_hash, g_double_equal); gdouble* values = malloc(lilv_scale_points_size(sp) * sizeof(gdouble)); int idx = 0; - LILV_FOREACH(scale_points, i, sp) { - const LilvScalePoint* p = lilv_scale_points_get(sp, i); + LILV_FOREACH(scale_points, s, sp) { + const LilvScalePoint* p = lilv_scale_points_get(sp, s); values[idx] = lilv_node_as_float(lilv_scale_point_get_value(p)); char* label = g_strdup( lilv_node_as_string(lilv_scale_point_get_label(p))); |