summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2014-05-29 22:25:39 -0700
committerAleksander Morgado <aleksander@aleksander.es>2014-05-30 08:43:19 +0200
commit502804bcbf18d7aef237972131084399c6f85b2c (patch)
tree19d41756b8d3a0535619179d160b537a631f2017
parent7d0a62e75d07051d9767cb756c2b47e7fa12f013 (diff)
cli,nas: fix constant out of range issue in comparison
This patch fixes a constant out of range issue in the following comparison: qmicli-nas.c:2407:24: error: comparison of constant 4294967295 with expression of type 'guint16' (aka 'unsigned short') is always false [-Werror,-Wtautological-constant-out-of-range-compare] if (cell_id_16 == 0xFFFFFFFF) ~~~~~~~~~~ ^ ~~~~~~~~~~
-rw-r--r--src/qmicli/qmicli-nas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c
index 015ff71..fb0c803 100644
--- a/src/qmicli/qmicli-nas.c
+++ b/src/qmicli/qmicli-nas.c
@@ -2404,7 +2404,7 @@ get_cell_location_info_ready (QmiClientNas *client,
gchar *plmn;
g_print ("UMTS Info\n");
- if (cell_id_16 == 0xFFFFFFFF)
+ if (cell_id_16 == 0xFFFF)
g_print ("\tCell ID: 'unavailable'\n");
else
g_print ("\tCell ID: '%" G_GUINT16_FORMAT"'\n", cell_id_16);