tests: Silence compiler warnings.
[platform/upstream/evolution-data-server.git] / tests / libebook / test-ebook.c
index 27007ee..c61433b 100644 (file)
@@ -1,10 +1,11 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
 #include <stdlib.h>
-#include <libebook/e-book.h>
+#include <libebook/libebook.h>
 
 #include "ebook-test-utils.h"
 
+#if 0  /* ACCOUNT_MGMT */
 static void
 print_email (EContact *contact)
 {
@@ -17,9 +18,9 @@ print_email (EContact *contact)
        printf ("Email addresses:\n");
        emails = e_contact_get (contact, E_CONTACT_EMAIL);
        for (e = emails; e; e = e->next) {
-               printf ("\t%s\n",  (gchar *)e->data);
+               printf ("\t%s\n",  (gchar *) e->data);
        }
-       g_list_foreach (emails, (GFunc)g_free, NULL);
+       g_list_foreach (emails, (GFunc) g_free, NULL);
        g_list_free (emails);
 
        printf ("\n");
@@ -69,10 +70,13 @@ print_one_email (EBook *book)
 
        g_object_unref (contact);
 }
+#endif /* ACCOUNT_MGMT */
 
 gint
-main (gint argc, gchar **argv)
+main (gint argc,
+      gchar **argv)
 {
+#if 0  /* ACCOUNT_MGMT */
        EBook *book;
 
        g_type_init ();
@@ -97,6 +101,7 @@ main (gint argc, gchar **argv)
        print_all_emails (book);
 
        g_object_unref (book);
+#endif /* ACCOUNT_MGMT */
 
        return 0;
 }