diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-20 14:03:19 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-20 15:27:49 +0100 |
commit | e59c5c19a948f324964e994386f3d0c392e4ffe1 (patch) | |
tree | 601d48e554703cba34ebf7015cb79e48759d3d83 | |
parent | f2d2a7897b08df41e15f5efc10a78a35c0b3a210 (diff) |
mbimcli: fix warnings with -Wsign-compare
mbimcli-basic-connect.c: In function ‘provisioned_contexts_ready’:
mbimcli-basic-connect.c:1810:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘guint32’ {aka ‘unsigned int’} [-Wsign-compare]
1810 | for (i = 0; i < provisioned_contexts_count; i++) {
| ^
mbimcli-phonebook.c: In function ‘query_phonebook_read_ready’:
mbimcli-phonebook.c:285:19: warning: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint32’ {aka ‘unsigned int’} [-Wsign-compare]
285 | for (i = 0; i < entry_count; i++) {
| ^
-rw-r--r-- | src/mbimcli/mbimcli-basic-connect.c | 2 | ||||
-rw-r--r-- | src/mbimcli/mbimcli-phonebook.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mbimcli/mbimcli-basic-connect.c b/src/mbimcli/mbimcli-basic-connect.c index 6c6a61b..7c518d3 100644 --- a/src/mbimcli/mbimcli-basic-connect.c +++ b/src/mbimcli/mbimcli-basic-connect.c @@ -1778,7 +1778,7 @@ provisioned_contexts_ready (MbimDevice *device, MbimMessage *response; MbimProvisionedContextElement **provisioned_contexts; guint32 provisioned_contexts_count; - int i; + guint i; GError *error = NULL; response = mbim_device_command_finish (device, res, &error); diff --git a/src/mbimcli/mbimcli-phonebook.c b/src/mbimcli/mbimcli-phonebook.c index 2467cfd..0868e8f 100644 --- a/src/mbimcli/mbimcli-phonebook.c +++ b/src/mbimcli/mbimcli-phonebook.c @@ -258,7 +258,7 @@ query_phonebook_read_ready (MbimDevice *device, GError *error = NULL; guint32 entry_count; MbimPhonebookEntry **phonebook_entries; - gint i = 0; + guint i; response = mbim_device_command_finish (device, res, &error); if (!response || !mbim_message_response_get_result (response, MBIM_MESSAGE_TYPE_COMMAND_DONE, &error)) { |