wmc: fix build after fixup of WMC field names

This commit is contained in:
Dan Williams
2011-11-14 17:38:02 -06:00
parent add6131edf
commit 262f0f5e81
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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));
+1 -1
View File
@@ -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"
+2 -2
View File
@@ -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);