Coding style and whitespace cleanups.
[platform/upstream/evolution-data-server.git] / tests / libecal / test-recur.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 #include <stdlib.h>
4 #include <libecal/e-cal.h>
5
6 gint
7 main (gint argc,
8       gchar **argv)
9 {
10         ECal *ecal;
11
12         g_type_init ();
13
14         if (argc < 2) {
15                 printf ("usage: test-recur <uid>\n");
16                 exit (0);
17         }
18
19         ecal = e_cal_new_from_uri (argv[1], E_CAL_SOURCE_TYPE_EVENT);
20
21         if (!e_cal_open (ecal, TRUE, NULL)) {
22                 printf ("failed to open calendar\n");
23                 exit (0);
24         }
25
26         g_object_unref (ecal);
27
28         return 0;
29 }