diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2017-09-01 16:41:17 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-09-01 16:49:47 -0400 |
commit | 65bce46298d064dff9db1282e17bb26602715819 (patch) | |
tree | bb0e59a809f05a5388e3803ec3ec5a2e22fb014f /net/bluetooth/lib.c | |
parent | dbbccdc4ced015cdd4051299bd87fbe0254ad351 (diff) |
Bluetooth: make baswap src const
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/lib.c')
-rw-r--r-- | net/bluetooth/lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
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++) |