From 8771a6de3590d468d1a2c3cfab34955c624f614a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 1 Jun 2009 19:09:19 -0400 Subject: More code cleanup. --- calendar/gui/alarm-notify/alarm-queue.c | 2 +- calendar/gui/alarm-notify/alarm.c | 2 +- calendar/gui/alarm-notify/util.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui/alarm-notify') diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index d5984d1e96..180542eb6e 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1636,7 +1636,7 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, ECalComponent *comp; ECalComponentAlarm *alarm; icalattach *attach; - int flag = 0; + gint flag = 0; d(printf("%s:%d (audio_notification)\n",__FILE__, __LINE__)); diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c index f2ab4bb23d..c487d94503 100644 --- a/calendar/gui/alarm-notify/alarm.c +++ b/calendar/gui/alarm-notify/alarm.c @@ -158,7 +158,7 @@ setup_timeout (void) } /* Used from g_list_insert_sorted(); compares the trigger times of two AlarmRecord structures. */ -static int +static gint compare_alarm_by_time (gconstpointer a, gconstpointer b) { const AlarmRecord *ara = a; diff --git a/calendar/gui/alarm-notify/util.c b/calendar/gui/alarm-notify/util.c index 5377c8d4b2..e0bbf10245 100644 --- a/calendar/gui/alarm-notify/util.c +++ b/calendar/gui/alarm-notify/util.c @@ -76,7 +76,7 @@ calculate_time (time_t start, time_t end) } if (i == 0 || difference != 0) { /* TRANSLATORS: here, "second" is the time division (like "minute"), not the ordinal number (like "third") */ - times[i++] = g_strdup_printf (ngettext("%d second", "%d seconds", difference), (int)difference); + times[i++] = g_strdup_printf (ngettext("%d second", "%d seconds", difference), (gint)difference); } times[i] = NULL; -- cgit