Implicit cast void* to uint8_t* is invalid in C++, so add explicit cast. diff --git a/lib/bluetooth.h b/lib/bluetooth.h index 6ca64b6..3367315 100644 --- a/lib/bluetooth.h +++ b/lib/bluetooth.h @@ -345,8 +345,8 @@ typedef struct { static inline void bswap_128(const void *src, void *dst) { - const uint8_t *s = src; - uint8_t *d = dst; + const uint8_t *s = (uint8_t*) src; + uint8_t *d = (uint8_t*) dst; int i; for (i = 0; i < 16; i++) -- 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