projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3492dc
)
Bluetooth: allow constant arguments for bacmp()/bacpy()
author
David Herrmann
<
[email protected]
>
Sat, 6 Apr 2013 18:28:42 +0000
(20:28 +0200)
committer
Gustavo Padovan
<
[email protected]
>
Wed, 17 Apr 2013 05:56:37 +0000
(
02:56
-0300)
There is no reason to require the source arguments to be writeable so fix
this to allow constant source addresses.
Signed-off-by: David Herrmann <
[email protected]
>
Acked-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Gustavo Padovan <
[email protected]
>
include/net/bluetooth/bluetooth.h
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/bluetooth.h
b/include/net/bluetooth/bluetooth.h
index 591fee7d00604baa4f9d628833f5f60b1ac38ebc..6912ef9a1881bc9a678be2b6a28dd9dfdc0f8177 100644
(file)
--- a/
include/net/bluetooth/bluetooth.h
+++ b/
include/net/bluetooth/bluetooth.h
@@
-193,11
+193,11
@@
static inline bool bdaddr_type_is_le(__u8 type)
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff} })
/* Copy, swap, convert BD Address */
-static inline int bacmp(
bdaddr_t *ba1,
bdaddr_t *ba2)
+static inline int bacmp(
const bdaddr_t *ba1, const
bdaddr_t *ba2)
{
return memcmp(ba1, ba2, sizeof(bdaddr_t));
}
-static inline void bacpy(bdaddr_t *dst, bdaddr_t *src)
+static inline void bacpy(bdaddr_t *dst,
const
bdaddr_t *src)
{
memcpy(dst, src, sizeof(bdaddr_t));
}