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, gchar **argv)
8 {
9         ECal *ecal;
10
11         g_type_init ();
12
13         if (argc < 2) {
14                 printf ("usage: test-recur <uid>\n");
15                 exit (0);
16         }
17
18         ecal = e_cal_new_from_uri (argv[1], E_CAL_SOURCE_TYPE_EVENT);
19
20         if (!e_cal_open (ecal, TRUE, NULL)) {
21                 printf ("failed to open calendar\n");
22                 exit (0);
23         }
24
25         g_object_unref (ecal);
26
27         return 0;
28 }