summaryrefslogtreecommitdiff
path: root/libs/evoral
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-03-29 14:18:08 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-03-29 14:18:08 -0400
commit3b20beb8d80e6b0ac12ef17e4f10e1d5dcc9fe55 (patch)
treef1f686307b48aa5484f27de77a08d52f91220826 /libs/evoral
parent197e75ab80a863585d83b515de8762407dfc70e1 (diff)
parent16f8fc06578dac939e9d26af2f016a2d42405d7a (diff)
Merge branch 'patches' of https://github.com/jdekozak/ardour
Diffstat (limited to 'libs/evoral')
-rw-r--r--libs/evoral/src/libsmf/smf.c6
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);