diff options
author | Denis Kenzior <denkenz@gmail.com> | 2015-12-15 15:12:55 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-12-15 17:17:15 -0600 |
commit | f1f657b6da688b484635194ae6f372a7e10949ce (patch) | |
tree | c80def3a6b13a0e3ddde69ba2f915110eeba4243 | |
parent | 68e4007d7b6d45941852e8c20cc9a02901b2c5b1 (diff) | |
download | ofono-f1f657b6da688b484635194ae6f372a7e10949ce.tar.bz2 |
stktest: Remove usage of decode_at_error
Otherwise the build fails when building without atmodem support
-rw-r--r-- | plugins/stktest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/stktest.c b/plugins/stktest.c index 6f7413db..c8cc9fbd 100644 --- a/plugins/stktest.c +++ b/plugins/stktest.c @@ -162,11 +162,11 @@ static void set_online_cb(gboolean ok, GAtResult *result, gpointer user_data) { struct cb_data *cbd = user_data; ofono_modem_online_cb_t callback = cbd->cb; - struct ofono_error error; - decode_at_error(&error, g_at_result_final_response(result)); - - callback(&error, cbd->data); + if (ok) + CALLBACK_WITH_SUCCESS(callback, cbd->data); + else + CALLBACK_WITH_FAILURE(callback, cbd->data); } static void stktest_set_online(struct ofono_modem *modem, ofono_bool_t online, |