Covert the type for the sizeof function for arm64 build 68/91868/2 accepted/tizen/common/20161012.154433 accepted/tizen/ivi/20161013.071941 accepted/tizen/mobile/20161013.071856 accepted/tizen/wearable/20161013.071920 submit/tizen/20161012.034939
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 12 Oct 2016 03:44:51 +0000 (12:44 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 12 Oct 2016 03:46:56 +0000 (12:46 +0900)
Change-Id: I2354b0680680c1292306e91d5c5468eb04009735
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
hf-agent/bluetooth-hf-agent.c

index b3cf2a4..d84f39b 100755 (executable)
@@ -1064,7 +1064,8 @@ static int __bt_hf_agent_handle_ccwa(bt_hf_agent_info_t *bt_hf_info,
        }
 
        if ((ccwa = strstr(buf, "\r\n+CCWA"))) {
-               snprintf(fmt_str, sizeof(fmt_str), "\r\n+CCWA: \"%%%ds", sizeof(number) - 1);
+               snprintf(fmt_str, sizeof(fmt_str), "\r\n+CCWA: \"%%%ds",
+                                                                       (int)(sizeof(number) - 1));
                if (sscanf(ccwa, fmt_str, number) == 1) {
                        sep = strchr(number, '"');
                        sep[0] = '\0';
@@ -1494,7 +1495,8 @@ static int __bt_hf_agent_handler_ciev(bt_hf_agent_info_t *bt_hf_info, const char
 
        DBG("++++++++ __bt_hf_agent_handler_ciev +++++++++");
 
-       snprintf(fmt_str, sizeof(fmt_str), "\r\n+CIEV:%%%ds\r\n", sizeof(indicator) - 1);
+       snprintf(fmt_str, sizeof(fmt_str), "\r\n+CIEV:%%%ds\r\n",
+                                                               (int)(sizeof(indicator) - 1));
        if (sscanf(buf, fmt_str, indicator) == 1) {
                sep = strchr(indicator, ',');
                sep[0] = '\0';
@@ -1602,7 +1604,8 @@ static int __bt_hf_agent_handler_xsat(bt_hf_agent_info_t *bt_hf_info,
        char fmt_str[BT_HF_CMD_BUF_SIZE];
 
        DBG("+++++++++ __bt_hf_agent_handler_xsat +++++++++");
-       snprintf(fmt_str, sizeof(fmt_str), "\r\n+XSAT:%%d,%%%ds\r\n", sizeof(msg) - 1);
+       snprintf(fmt_str, sizeof(fmt_str), "\r\n+XSAT:%%d,%%%ds\r\n",
+                                                                               (int)(sizeof(msg) - 1));
        if (sscanf(buf, fmt_str, &app_id, msg)) {
                if (app_id == 2 && strstr(msg, "READTXPOWER")) {
                        char cmd_buf[BT_HF_CMD_BUF_SIZE * 2] = {0, };