diff options
author | Bertrand Aygon <bertrand.aygon@intel.com> | 2011-07-07 18:39:03 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-07-07 01:15:21 -0500 |
commit | 54dd702841cdd4880bd859aaabf3c8ee074e9896 (patch) | |
tree | 19e22f4b792e2c1d4a66333045c42c935c587d7b /plugins/zte.c | |
parent | a4cfed9eae11cda96c0a934b8f5afdbf6b44e39c (diff) | |
download | ofono-54dd702841cdd4880bd859aaabf3c8ee074e9896.tar.bz2 |
zte: Use decode_at_error instead
Diffstat (limited to 'plugins/zte.c')
-rw-r--r-- | plugins/zte.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/zte.c b/plugins/zte.c index 822098d4..6a4b3746 100644 --- a/plugins/zte.c +++ b/plugins/zte.c @@ -233,11 +233,10 @@ static void set_online_cb(gboolean ok, GAtResult *result, gpointer user_data) { struct cb_data *cbd = user_data; ofono_modem_online_cb_t cb = cbd->cb; + struct ofono_error error; - if (ok) - CALLBACK_WITH_SUCCESS(cb, cbd->data); - else - CALLBACK_WITH_FAILURE(cb, cbd->data); + decode_at_error(&error, g_at_result_final_response(result)); + cb(&error, cbd->data); } static void zte_set_online(struct ofono_modem *modem, ofono_bool_t online, |