Commit 66bed1a2 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann

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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent fdcc4bec
...@@ -35,14 +35,14 @@ ...@@ -35,14 +35,14 @@
#define AUTH_REQ_MASK 0x07 #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; int i;
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
dst[15 - i] = src[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; int i;
for (i = 0; i < 7; i++) for (i = 0; i < 7; 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