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/gui/calendar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui/calendar.c') diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index c53d2f1566..a76d95758f 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/calendar.c @@ -339,10 +339,10 @@ calendar_save (Calendar *cal, char *fname) } static gint -calendar_object_compare_by_start (gpointer a, gpointer b) +calendar_object_compare_by_start (gconstpointer a, gconstpointer b) { - CalendarObject *ca = a; - CalendarObject *cb = b; + const CalendarObject *ca = a; + const CalendarObject *cb = b; time_t diff; diff = ca->ev_start - cb->ev_start; -- cgit