aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r--addressbook/backend/ebook/e-card-simple.c2
-rw-r--r--addressbook/backend/ebook/e-card.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c
index ddad7249dd..0efda1a8d7 100644
--- a/addressbook/backend/ebook/e-card-simple.c
+++ b/addressbook/backend/ebook/e-card-simple.c
@@ -918,6 +918,8 @@ char *e_card_simple_get (ECardSimple *simple,
"org", &string,
NULL);
return g_strdup(string);
+ default:
+ return NULL;
}
default:
return NULL;
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 85ef7366d5..a81544dcd3 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -1692,7 +1692,7 @@ e_card_init (ECard *card)
GList *
e_card_load_cards_from_file(const char *filename)
{
- VObject *vobj = Parse_MIME_FromFileName(filename);
+ VObject *vobj = Parse_MIME_FromFileName((char *) filename);
GList *list = NULL;
while(vobj) {
VObject *next;