ussd: Give proper errors

This commit is contained in:
Denis Kenzior 2010-09-15 11:45:18 -05:00
parent 165fa52cdf
commit 98e2b6b426
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}