diff options
-rw-r--r-- | include/net/bluetooth/bluetooth.h | 2 | ||||
-rw-r--r-- | net/bluetooth/lib.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 01487192f628..020142bb9735 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
@@ -233,7 +233,7 @@ static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src) | |||
233 | memcpy(dst, src, sizeof(bdaddr_t)); | 233 | memcpy(dst, src, sizeof(bdaddr_t)); |
234 | } | 234 | } |
235 | 235 | ||
236 | void baswap(bdaddr_t *dst, bdaddr_t *src); | 236 | void baswap(bdaddr_t *dst, const bdaddr_t *src); |
237 | 237 | ||
238 | /* Common socket structures and functions */ | 238 | /* Common socket structures and functions */ |
239 | 239 | ||
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index aa4cf64e32a6..63e65d9b4b24 100644 --- a/net/bluetooth/lib.c +++ b/net/bluetooth/lib.c | |||
@@ -30,10 +30,10 @@ | |||
30 | 30 | ||
31 | #include <net/bluetooth/bluetooth.h> | 31 | #include <net/bluetooth/bluetooth.h> |
32 | 32 | ||
33 | void baswap(bdaddr_t *dst, bdaddr_t *src) | 33 | void baswap(bdaddr_t *dst, const bdaddr_t *src) |
34 | { | 34 | { |
35 | unsigned char *d = (unsigned char *) dst; | 35 | const unsigned char *s = (const unsigned char *)src; |
36 | unsigned char *s = (unsigned char *) src; | 36 | unsigned char *d = (unsigned char *)dst; |
37 | unsigned int i; | 37 | unsigned int i; |
38 | 38 | ||
39 | for (i = 0; i < 6; i++) | 39 | for (i = 0; i < 6; i++) |