option,hso: fix warnings with -Wsign-compare

option/mm-broadband-bearer-hso.c: In function ‘ip_config_ready’:
  option/mm-broadband-bearer-hso.c:128:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
    128 |                 num != ctx->cid) {
        |                     ^~
This commit is contained in:
Aleksander Morgado
2020-01-31 09:31:57 +01:00
parent fc581c50bd
commit 68f3eeeaa7

View File

@@ -122,9 +122,9 @@ ip_config_ready (MMBaseModem *modem,
for (i = 0, dns_i = 0; items[i]; i++) {
if (i == 0) { /* CID */
gint num;
guint num;
if (!mm_get_int_from_str (items[i], &num) ||
if (!mm_get_uint_from_str (items[i], &num) ||
num != ctx->cid) {
error = g_error_new (MM_CORE_ERROR,
MM_CORE_ERROR_FAILED,