Commit 65bce462 authored by Loic Poulain's avatar Loic Poulain Committed by Marcel Holtmann

Bluetooth: make baswap src const

Signed-off-by: default avatarLoic Poulain <loic.poulain@linaro.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent dbbccdc4
...@@ -233,7 +233,7 @@ static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src) ...@@ -233,7 +233,7 @@ static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src)
memcpy(dst, src, sizeof(bdaddr_t)); memcpy(dst, src, sizeof(bdaddr_t));
} }
void baswap(bdaddr_t *dst, bdaddr_t *src); void baswap(bdaddr_t *dst, const bdaddr_t *src);
/* Common socket structures and functions */ /* Common socket structures and functions */
......
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/bluetooth.h>
void baswap(bdaddr_t *dst, bdaddr_t *src) void baswap(bdaddr_t *dst, const bdaddr_t *src)
{ {
unsigned char *d = (unsigned char *) dst; const unsigned char *s = (const unsigned char *)src;
unsigned char *s = (unsigned char *) src; unsigned char *d = (unsigned char *)dst;
unsigned int i; unsigned int i;
for (i = 0; i < 6; i++) for (i = 0; i < 6; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment