From 90f3cdb8d64e0e5eb8ddb1c8ff51d17c3d6c0028 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 13 Jul 2009 22:29:54 -0500 Subject: [PATCH] Fix unused variable warnings --- src/phonebook.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/phonebook.c b/src/phonebook.c index 399ec693..4f2805e5 100644 --- a/src/phonebook.c +++ b/src/phonebook.c @@ -282,8 +282,6 @@ static void print_merged_entry(struct phonebook_person *person, GString *vcards) static void destroy_merged_entry(struct phonebook_person *person) { - GSList *number_list; - g_free(person->text); g_free(person->group); g_free(person->email); @@ -301,7 +299,6 @@ static DBusMessage *generate_export_entries_reply(struct ofono_modem *modem, struct phonebook_data *phonebook = modem->phonebook; DBusMessage *reply; DBusMessageIter iter; - DBusConnection *conn = dbus_gsm_connection(); reply = dbus_message_new_method_return(msg); if (!reply) @@ -367,7 +364,6 @@ void ofono_phonebook_entry(struct ofono_modem *modem, int index, const char *sip_uri, const char *tel_uri) { struct phonebook_data *phonebook = modem->phonebook; - char field[LEN_MAX]; /* * We need to collect all the entries that belong to one person, @@ -421,7 +417,6 @@ static void export_phonebook_cb(const struct ofono_error *error, void *data) { struct ofono_modem *modem = data; struct phonebook_data *phonebook = modem->phonebook; - DBusConnection *conn = dbus_gsm_connection(); if (error->type != OFONO_ERROR_TYPE_NO_ERROR) ofono_error("export_entries_one_storage_cb with %s failed", @@ -446,7 +441,6 @@ static void export_phonebook(struct ofono_modem *modem) struct phonebook_data *phonebook = modem->phonebook; DBusMessage *reply; const char *pb = storage_support[phonebook->storage_index]; - GSList *l, *m; if (pb) { phonebook->ops->export_entries(modem, pb,