}
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';
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';
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, };