shared-qmi: fix warnings with -Wsign-compare
mm-shared-qmi.c: In function ‘get_config_info_indication’:
mm-shared-qmi.c:2843:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
2843 | for (i = 0; i < ctx->config_list->len; i++) {
| ^
mm-shared-qmi.c:2850:11: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
2850 | if (i == ctx->config_list->len)
| ^~
mm-shared-qmi.c: In function ‘list_configs_indication’:
mm-shared-qmi.c:2927:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
2927 | for (i = 0; i < configs->len; i++) {
| ^
This commit is contained in:
+2
-2
@@ -2826,7 +2826,7 @@ get_config_info_indication (QmiClientPdc *client,
|
||||
ConfigInfo *current_config = NULL;
|
||||
guint32 token;
|
||||
const gchar *description;
|
||||
int i;
|
||||
guint i;
|
||||
guint16 error_code = 0;
|
||||
|
||||
ctx = g_task_get_task_data (task);
|
||||
@@ -2892,7 +2892,7 @@ list_configs_indication (QmiClientPdc *client,
|
||||
LoadCarrierConfigContext *ctx;
|
||||
GError *error = NULL;
|
||||
GArray *configs = NULL;
|
||||
int i;
|
||||
guint i;
|
||||
guint16 error_code = 0;
|
||||
|
||||
ctx = g_task_get_task_data (task);
|
||||
|
||||
Reference in New Issue
Block a user