From e095ce5ab86387d4b07a45f298fa85e690170456 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 4 Aug 1998 01:55:18 +0000 Subject: Use an array of const strings to keep gcc happy. 1998-08-03 Federico Mena Quintero * main.c (about_calendar_cmd): Use an array of const strings to keep gcc happy. * alarm.c (alarm_compare_by_time): Use gconstpointer to keep gcc happy. * calendar.c (calendar_object_compare_by_start): Likewise. * gncal-full-day.c (child_compare_by_start): Likewise. svn path=/trunk/; revision=296 --- calendar/alarm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/alarm.c') diff --git a/calendar/alarm.c b/calendar/alarm.c index 6573a1be3d..280d4125e3 100644 --- a/calendar/alarm.c +++ b/calendar/alarm.c @@ -61,10 +61,10 @@ alarm_ready (void *closure, int fd, GdkInputCondition cond) } static int -alarm_compare_by_time (gpointer a, gpointer b) +alarm_compare_by_time (gconstpointer a, gconstpointer b) { - AlarmRecord *ara = a; - AlarmRecord *arb = b; + const AlarmRecord *ara = a; + const AlarmRecord *arb = b; time_t diff; diff = ara->activation_time - arb->activation_time; -- cgit