helpers: +CNUM parser doesn't return any error
This commit is contained in:
@@ -223,7 +223,7 @@ response_processor_cnum_ignore_at_errors (MMBaseModem *self,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
own_numbers = mm_3gpp_parse_cnum_exec_response (response, result_error);
|
||||
own_numbers = mm_3gpp_parse_cnum_exec_response (response);
|
||||
if (!own_numbers)
|
||||
return FALSE;
|
||||
|
||||
|
@@ -1161,7 +1161,7 @@ modem_load_own_numbers_done (MMIfaceModem *self,
|
||||
}
|
||||
g_task_return_error (task, error);
|
||||
} else {
|
||||
numbers = mm_3gpp_parse_cnum_exec_response (result, NULL);
|
||||
numbers = mm_3gpp_parse_cnum_exec_response (result);
|
||||
g_task_return_pointer (task, numbers, (GDestroyNotify)g_strfreev);
|
||||
}
|
||||
g_object_unref (task);
|
||||
|
@@ -2817,8 +2817,7 @@ mm_3gpp_parse_clck_write_response (const gchar *reply,
|
||||
/*************************************************************************/
|
||||
|
||||
GStrv
|
||||
mm_3gpp_parse_cnum_exec_response (const gchar *reply,
|
||||
GError **error)
|
||||
mm_3gpp_parse_cnum_exec_response (const gchar *reply)
|
||||
{
|
||||
GArray *array = NULL;
|
||||
GRegex *r;
|
||||
|
@@ -226,8 +226,7 @@ gboolean mm_3gpp_parse_clck_write_response (const gchar *reply,
|
||||
gboolean *enabled);
|
||||
|
||||
/* AT+CNUM (Own numbers) response parser */
|
||||
GStrv mm_3gpp_parse_cnum_exec_response (const gchar *reply,
|
||||
GError **error);
|
||||
GStrv mm_3gpp_parse_cnum_exec_response (const gchar *reply);
|
||||
|
||||
/* AT+CMER=? (Mobile Equipment Event Reporting) response parser */
|
||||
typedef enum { /*< underscore_name=mm_3gpp_cmer_mode >*/
|
||||
|
@@ -2690,14 +2690,12 @@ test_cnum_results (const gchar *desc,
|
||||
const GStrv expected)
|
||||
{
|
||||
GStrv results;
|
||||
GError *error = NULL;
|
||||
guint i;
|
||||
|
||||
trace ("\nTesting +CNUM response (%s)...\n", desc);
|
||||
|
||||
results = mm_3gpp_parse_cnum_exec_response (reply, &error);
|
||||
results = mm_3gpp_parse_cnum_exec_response (reply);
|
||||
g_assert (results);
|
||||
g_assert_no_error (error);
|
||||
g_assert_cmpuint (g_strv_length (results), ==, g_strv_length (expected));
|
||||
|
||||
for (i = 0; results[i]; i++) {
|
||||
|
Reference in New Issue
Block a user