[evolution-patches] warning removal patch for libecal



-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.319
diff -u -p -r1.319 ChangeLog
--- ChangeLog	24 Aug 2004 16:10:32 -0000	1.319
+++ ChangeLog	25 Aug 2004 12:07:32 -0000
@@ -1,3 +1,9 @@
+2004-08-25  Rodrigo Moya <rodrigo novell com>
+
+	* libecal/e-cal-util.c (check_instance): match the prototype expected
+	in icalcomponent_foreach_recurrence.
+	(e_cal_util_remove_instances): fixed warning.
+
 2004-08-24  Sivaiah Nallagatla <snallagatla novell com>
 
 	* backends/groupwise/e-cal-backend-groupwise.c 
Index: libecal/e-cal-util.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal-util.c,v
retrieving revision 1.5
diff -u -p -r1.5 e-cal-util.c
--- libecal/e-cal-util.c	13 May 2004 09:34:09 -0000	1.5
+++ libecal/e-cal-util.c	25 Aug 2004 12:07:38 -0000
@@ -461,12 +461,12 @@ compare_alarm_instance (gconstpointer a,
  */
 ECalComponentAlarms *
 e_cal_util_generate_alarms_for_comp (ECalComponent *comp,
-				   time_t start,
-				   time_t end,
-				   ECalComponentAlarmAction *omit,
-				   ECalRecurResolveTimezoneFn resolve_tzid,
-				   gpointer user_data,
-				   icaltimezone *default_timezone)
+				     time_t start,
+				     time_t end,
+				     ECalComponentAlarmAction *omit,
+				     ECalRecurResolveTimezoneFn resolve_tzid,
+				     gpointer user_data,
+				     icaltimezone *default_timezone)
 {
 	GList *alarm_uids;
 	time_t alarm_start, alarm_end;
@@ -778,11 +778,11 @@ struct instance_data {
 };
 
 static void
-check_instance (icalcomponent *comp, struct icaltime_span span, void *data)
+check_instance (icalcomponent *comp, struct icaltime_span *span, void *data)
 {
 	struct instance_data *instance = data;
 
-	if (span.start == instance->start)
+	if (span->start == instance->start)
 		instance->found = TRUE;
 }
 
@@ -866,7 +866,6 @@ e_cal_util_remove_instances (icalcompone
 	struct icaltimetype itt, recur;
 	struct icalrecurrencetype rule;
 	icalrecur_iterator *iter;
-	struct instance_data instance;
 
 	g_return_if_fail (icalcomp != NULL);
 	g_return_if_fail (mod != CALOBJ_MOD_ALL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]