Skip to content

Commit

Permalink
Bluetooth: make baswap src const
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Poulain <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Loic Poulain authored and holtmann committed Sep 1, 2017
1 parent dbbccdc commit 65bce46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/net/bluetooth/bluetooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src)
memcpy(dst, src, sizeof(bdaddr_t));
}

void baswap(bdaddr_t *dst, bdaddr_t *src);
void baswap(bdaddr_t *dst, const bdaddr_t *src);

/* Common socket structures and functions */

Expand Down
6 changes: 3 additions & 3 deletions net/bluetooth/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@

#include <net/bluetooth/bluetooth.h>

void baswap(bdaddr_t *dst, bdaddr_t *src)
void baswap(bdaddr_t *dst, const bdaddr_t *src)
{
unsigned char *d = (unsigned char *) dst;
unsigned char *s = (unsigned char *) src;
const unsigned char *s = (const unsigned char *)src;
unsigned char *d = (unsigned char *)dst;
unsigned int i;

for (i = 0; i < 6; i++)
Expand Down

0 comments on commit 65bce46

Please sign in to comment.