diff options
author | Julien de Kozak <jdekozak@hotmail.com> | 2013-03-23 14:33:20 +0100 |
---|---|---|
committer | Julien de Kozak <jdekozak@hotmail.com> | 2013-03-23 14:50:58 +0100 |
commit | 16f8fc06578dac939e9d26af2f016a2d42405d7a (patch) | |
tree | 0c3e0f7886eafcf3d9fcb271f0cf8773ee4e29cb /libs/evoral/src/libsmf | |
parent | 268553ecd471e31d0a1a3976f02389260130e41d (diff) |
Fix some compilation warnings
Diffstat (limited to 'libs/evoral/src/libsmf')
-rw-r--r-- | libs/evoral/src/libsmf/smf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/evoral/src/libsmf/smf.c b/libs/evoral/src/libsmf/smf.c index d62dc6d7eb..b79d7543b6 100644 --- a/libs/evoral/src/libsmf/smf.c +++ b/libs/evoral/src/libsmf/smf.c @@ -377,12 +377,12 @@ smf_event_delete(smf_event_t *event) static gint events_array_compare_function(gconstpointer aa, gconstpointer bb) { - smf_event_t *a, *b; + const smf_event_t *a, *b; /* "The comparison function for g_ptr_array_sort() doesn't take the pointers from the array as arguments, it takes pointers to the pointers in the array." */ - a = (smf_event_t *)*(gpointer *)aa; - b = (smf_event_t *)*(gpointer *)bb; + a = (const smf_event_t *)*(const gpointer *)aa; + b = (const smf_event_t *)*(const gpointer *)bb; if (a->time_pulses < b->time_pulses) return (-1); |