summaryrefslogtreecommitdiff
path: root/libwmc
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-11-14 17:38:02 -0600
committerDan Williams <dcbw@redhat.com>2011-11-14 17:38:02 -0600
commit262f0f5e81ae5b346090102acecf642ed0ee09f9 (patch)
treeb7e2dd7a46f615ceb678fe8e032b7992360294b5 /libwmc
parentadd6131edfb4271748b5991f0ce6f447fef88f6d (diff)
wmc: fix build after fixup of WMC field names
Diffstat (limited to 'libwmc')
-rw-r--r--libwmc/src/commands.c6
-rw-r--r--libwmc/src/commands.h2
-rw-r--r--libwmc/tests/test-wmc-com.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/libwmc/src/commands.c b/libwmc/src/commands.c
index 0128a8a9..bae19ffd 100644
--- a/libwmc/src/commands.c
+++ b/libwmc/src/commands.c
@@ -177,9 +177,9 @@ wmc_cmd_device_info_result (const char *buf, gsize buflen)
/* IMSI */
memset (tmp, 0, sizeof (tmp));
- g_assert (sizeof (rsp2->imsi) <= sizeof (tmp));
- memcpy (tmp, rsp2->imsi, sizeof (rsp2->imsi));
- wmc_result_add_string (r, WMC_CMD_DEVICE_INFO_ITEM_IMSI, tmp);
+ g_assert (sizeof (rsp2->iccid) <= sizeof (tmp));
+ memcpy (tmp, rsp2->iccid, sizeof (rsp2->iccid));
+ wmc_result_add_string (r, WMC_CMD_DEVICE_INFO_ITEM_ICCID, tmp);
/* MCC */
memset (tmp, 0, sizeof (tmp));
diff --git a/libwmc/src/commands.h b/libwmc/src/commands.h
index a6c5abf4..c1be3f6d 100644
--- a/libwmc/src/commands.h
+++ b/libwmc/src/commands.h
@@ -37,7 +37,7 @@ WmcResult * wmc_cmd_init_result (const char *buf, size_t len, int wmc2);
#define WMC_CMD_DEVICE_INFO_ITEM_FW_REVISION "firmware-revision"
#define WMC_CMD_DEVICE_INFO_ITEM_HW_REVISION "hardware-revision"
#define WMC_CMD_DEVICE_INFO_ITEM_IMEI "imei"
-#define WMC_CMD_DEVICE_INFO_ITEM_IMSI "imsi"
+#define WMC_CMD_DEVICE_INFO_ITEM_ICCID "iccid"
#define WMC_CMD_DEVICE_INFO_ITEM_MCC "mcc"
#define WMC_CMD_DEVICE_INFO_ITEM_MNC "mnc"
diff --git a/libwmc/tests/test-wmc-com.c b/libwmc/tests/test-wmc-com.c
index 203aeefe..3a6b96dc 100644
--- a/libwmc/tests/test-wmc-com.c
+++ b/libwmc/tests/test-wmc-com.c
@@ -300,8 +300,8 @@ test_com_device_info (void *f, void *data)
g_message ("%s: IMEI: %s", __func__, str ? str : "(none)");
str = NULL;
- wmc_result_get_string (result, WMC_CMD_DEVICE_INFO_ITEM_IMSI, &str);
- g_message ("%s: IMSI: %s", __func__, str ? str : "(none)");
+ wmc_result_get_string (result, WMC_CMD_DEVICE_INFO_ITEM_ICCID, &str);
+ g_message ("%s: ICCID: %s", __func__, str ? str : "(none)");
str = NULL;
wmc_result_get_string (result, WMC_CMD_DEVICE_INFO_ITEM_MCC, &str);