aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/tools/evolution-addressbook-export-list-cards.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/tools/evolution-addressbook-export-list-cards.c')
-rw-r--r--addressbook/tools/evolution-addressbook-export-list-cards.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/addressbook/tools/evolution-addressbook-export-list-cards.c b/addressbook/tools/evolution-addressbook-export-list-cards.c
index 86c5cb34d2..d6e9ecca57 100644
--- a/addressbook/tools/evolution-addressbook-export-list-cards.c
+++ b/addressbook/tools/evolution-addressbook-export-list-cards.c
@@ -688,7 +688,7 @@ set_pre_defined_field (GSList **pre_defined_fields)
*pre_defined_fields = g_slist_append (*pre_defined_fields, GINT_TO_POINTER (E_CONTACT_CSV_NOTE));
}
-guint
+void
action_list_cards_init (ActionContext *p_actctx)
{
ESourceRegistry *registry;
@@ -714,9 +714,9 @@ action_list_cards_init (ActionContext *p_actctx)
g_object_unref (source);
/* Sanity check. */
- g_return_val_if_fail (
+ g_return_if_fail (
((client != NULL) && (error == NULL)) ||
- ((client == NULL) && (error != NULL)), FAILED);
+ ((client == NULL) && (error != NULL)));
if (error != NULL) {
g_warning (
@@ -747,6 +747,4 @@ action_list_cards_init (ActionContext *p_actctx)
g_warning ("Failed to get contacts: %s", error->message);
g_error_free (error);
}
-
- return error ? FAILED : SUCCESS;
}