From 98e2b6b426a96dcf836c5621c13e8e7756a9e7c1 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 15 Sep 2010 11:45:18 -0500 Subject: ussd: Give proper errors --- src/ussd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ussd.c b/src/ussd.c index 76c552b0..57390f1f 100644 --- a/src/ussd.c +++ b/src/ussd.c @@ -621,7 +621,7 @@ static void ussd_cancel_callback(const struct ofono_error *error, void *data) __ofono_dbus_pending_reply(&ussd->cancel, reply); if (ussd->req) - ussd_request_finish(ussd, -1, -ECANCELED, NULL, -1); + ussd_request_finish(ussd, -ECANCELED, 0, NULL, 0); ussd_change_state(ussd, USSD_STATE_IDLE); } @@ -827,7 +827,7 @@ static void ussd_request_callback(const struct ofono_error *error, void *data) struct ofono_ussd *ussd = data; if (error->type != OFONO_ERROR_TYPE_NO_ERROR) - ussd_request_finish(ussd, error->error, -1, NULL, -1); + ussd_request_finish(ussd, -EINVAL, 0, NULL, 0); else ussd_change_state(ussd, USSD_STATE_ACTIVE); } -- cgit v1.2.3