summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-03-18 12:58:23 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-03-18 10:18:26 -0700
commit66bed1a24ec28e52fc2c7c0a2aa945a893bfa9bc (patch)
treeb43d08592628805d8a1fd57f5c5e2903a17739e4 /net/bluetooth
parentfdcc4beccb52f752799978c4da0dcd0faadbdcd4 (diff)
downloadop-kernel-dev-66bed1a24ec28e52fc2c7c0a2aa945a893bfa9bc.zip
op-kernel-dev-66bed1a24ec28e52fc2c7c0a2aa945a893bfa9bc.tar.gz
Bluetooth: Fix const declaration for swap function src parameter
To make it possible to (correctly) pass data declared as const as the src parameter to the swap56 and swap128 functions declare this parameter also as const. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 8a1b1bf..4f3cde9 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -35,14 +35,14 @@
#define AUTH_REQ_MASK 0x07
-static inline void swap128(u8 src[16], u8 dst[16])
+static inline void swap128(const u8 src[16], u8 dst[16])
{
int i;
for (i = 0; i < 16; i++)
dst[15 - i] = src[i];
}
-static inline void swap56(u8 src[7], u8 dst[7])
+static inline void swap56(const u8 src[7], u8 dst[7])
{
int i;
for (i = 0; i < 7; i++)
OpenPOWER on IntegriCloud