This patch removes useless uint8_t array to bdaddr_t cast. android2bdaddr function expects const void *buf as first parametr. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 68e2112..473929d 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -2233,7 +2233,7 @@ static void handle_client_register_for_notification(const void *buf, goto failed; } - android2bdaddr((bdaddr_t *)&cmd->bdaddr, &addr); + android2bdaddr(&cmd->bdaddr, &addr); dev = queue_find(conn_list, match_dev_by_bdaddr, &addr); if (!dev) { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html