diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-10-21 23:54:53 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-10-21 23:54:53 +0200 |
commit | f0175ba3fc693f1d398dec2f0168f6ed860d88f4 (patch) | |
tree | 5eaa8eb991397f229ba7a567e87dd5ce38208bb9 /drivers | |
parent | 2c06348356bff344c68f381011d2b42a8067713c (diff) |
ifxmodem: Fix compiler warnings in GPRS context driver
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ifxmodem/gprs-context.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/ifxmodem/gprs-context.c b/drivers/ifxmodem/gprs-context.c index 0fff2bb8..630e1aa6 100644 --- a/drivers/ifxmodem/gprs-context.c +++ b/drivers/ifxmodem/gprs-context.c @@ -163,7 +163,7 @@ static void dns_cb(gboolean ok, GAtResult *result, gpointer user_data) struct ofono_gprs_context *gc = user_data; struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc); char buf[64]; - unsigned int cid; + int cid; const char *address; GAtResultIter iter; @@ -181,7 +181,7 @@ static void dns_cb(gboolean ok, GAtResult *result, gpointer user_data) if (!g_at_result_iter_next_number(&iter, &cid)) goto error; - if (cid != gcd->active_context) + if ((unsigned int) cid != gcd->active_context) goto error; if (!g_at_result_iter_next_string(&iter, &address)) @@ -210,8 +210,7 @@ static void address_cb(gboolean ok, GAtResult *result, gpointer user_data) { struct ofono_gprs_context *gc = user_data; struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc); - char buf[64]; - unsigned int cid; + int cid; const char *address; GAtResultIter iter; @@ -229,7 +228,7 @@ static void address_cb(gboolean ok, GAtResult *result, gpointer user_data) if (!g_at_result_iter_next_number(&iter, &cid)) goto error; - if (cid != gcd->active_context) + if ((unsigned int) cid != gcd->active_context) goto error; if (!g_at_result_iter_next_string(&iter, &address)) @@ -362,7 +361,7 @@ static void cgev_notify(GAtResult *result, gpointer user_data) struct ofono_gprs_context *gc = user_data; struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc); const char *event; - unsigned int cid; + int cid; GAtResultIter iter; g_at_result_iter_init(&iter, result); @@ -382,7 +381,7 @@ static void cgev_notify(GAtResult *result, gpointer user_data) if (!g_at_result_iter_next_number(&iter, &cid)) return; - if (cid != gcd->active_context) + if ((unsigned int) cid != gcd->active_context) return; if (gcd->state != STATE_IDLE && gcd->rawip) { |