[evolution-data-server] tests/ecal: Fix dead initializations.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] tests/ecal: Fix dead initializations.
- Date: Sun, 30 Jan 2011 23:06:28 +0000 (UTC)
commit 34462b5494d967ece9d9d080b2792742f8a71664
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jan 30 17:34:10 2011 -0500
tests/ecal: Fix dead initializations.
calendar/tests/ecal/test-ecal-get-free-busy.c | 4 ++--
calendar/tests/ecal/test-ecal.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/calendar/tests/ecal/test-ecal-get-free-busy.c b/calendar/tests/ecal/test-ecal-get-free-busy.c
index c35295a..7ed04d2 100644
--- a/calendar/tests/ecal/test-ecal-get-free-busy.c
+++ b/calendar/tests/ecal/test-ecal-get-free-busy.c
@@ -14,7 +14,7 @@ main (gint argc, gchar **argv)
gchar *uri = NULL;
GList *users = NULL;
icaltimezone *utc;
- time_t start = time (NULL), end;
+ time_t start, end;
GList *free_busy;
g_type_init ();
@@ -23,7 +23,7 @@ main (gint argc, gchar **argv)
ecal_test_utils_cal_open (cal, FALSE);
utc = icaltimezone_get_utc_timezone ();
- start = time_from_isodate ("20040212T000000Z");
+ start = time_from_isodate ("20040212T000000Z");
end = time_add_day_with_zone (start, 2, utc);
/* XXX: create dummy list, which the file backend will ignore */
users = g_list_prepend (users, NULL);
diff --git a/calendar/tests/ecal/test-ecal.c b/calendar/tests/ecal/test-ecal.c
index 1e9bd69..bd520dc 100644
--- a/calendar/tests/ecal/test-ecal.c
+++ b/calendar/tests/ecal/test-ecal.c
@@ -304,7 +304,7 @@ test_get_alarms_in_range (ECal *client)
{
GSList *alarms;
icaltimezone *utc;
- time_t start = time (NULL), end;
+ time_t start, end;
gboolean compare;
utc = icaltimezone_get_utc_timezone ();
@@ -513,7 +513,7 @@ test_get_free_busy (ECal *client)
GList *l, *freebusy = NULL;
GError *error = NULL;
icaltimezone *utc;
- time_t start = time (NULL), end;
+ time_t start, end;
utc = icaltimezone_get_utc_timezone ();
start = time_from_isodate ("20040212T000000Z");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]