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:
@@ -122,9 +122,9 @@ ip_config_ready (MMBaseModem *modem,
|
|||||||
|
|
||||||
for (i = 0, dns_i = 0; items[i]; i++) {
|
for (i = 0, dns_i = 0; items[i]; i++) {
|
||||||
if (i == 0) { /* CID */
|
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) {
|
num != ctx->cid) {
|
||||||
error = g_error_new (MM_CORE_ERROR,
|
error = g_error_new (MM_CORE_ERROR,
|
||||||
MM_CORE_ERROR_FAILED,
|
MM_CORE_ERROR_FAILED,
|
||||||
|
Reference in New Issue
Block a user