summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-08-05 12:33:01 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-08-05 12:33:01 -0500
commitb7c51f90284f5f499acf5b01211eb848abfaedaf (patch)
tree1ff306b00e80102882c53c5a2d158d61db2b3efb /src
parentd36f8d868a9c4e9aaaf779e43a54b7ea7111c5d2 (diff)
downloadofono-b7c51f90284f5f499acf5b01211eb848abfaedaf.tar.bz2
Remove unused declaration
Diffstat (limited to 'src')
-rw-r--r--src/message-waiting.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/message-waiting.c b/src/message-waiting.c
index 14a6e9cb..386ab2ab 100644
--- a/src/message-waiting.c
+++ b/src/message-waiting.c
@@ -43,8 +43,6 @@
#define MESSAGE_WAITING_INTERFACE "org.ofono.MessageWaiting"
-static gboolean mw_update(gpointer user);
-
struct mailbox_state {
gboolean indication;
unsigned char message_count;
@@ -169,7 +167,7 @@ static void mbdn_set_cb(gboolean ok, void *data)
struct mbdn_set_request *req = data;
struct ofono_phone_number *old = &req->mw->mailbox_number[req->mailbox];
const char *property;
- DBusMessage *reply;
+ DBusMessage *reply = NULL;
if (!ok) {
if (req->msg)
@@ -202,7 +200,7 @@ static void mbdn_set_cb(gboolean ok, void *data)
reply = dbus_message_new_method_return(req->msg);
out:
- if (req->msg)
+ if (req->msg && reply)
__ofono_dbus_pending_reply(&req->msg, reply);
g_free(req);