lib.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | lib.c (65bce46298d064dff9db1282e17bb26602715819) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 16 unchanged lines hidden (view full) --- 25/* Bluetooth kernel library. */ 26 27#define pr_fmt(fmt) "Bluetooth: " fmt 28 29#include <linux/export.h> 30 31#include <net/bluetooth/bluetooth.h> 32 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 16 unchanged lines hidden (view full) --- 25/* Bluetooth kernel library. */ 26 27#define pr_fmt(fmt) "Bluetooth: " fmt 28 29#include <linux/export.h> 30 31#include <net/bluetooth/bluetooth.h> 32 |
33void baswap(bdaddr_t *dst, bdaddr_t *src) | 33void baswap(bdaddr_t *dst, const bdaddr_t *src) |
34{ | 34{ |
35 unsigned char *d = (unsigned char *) dst; 36 unsigned char *s = (unsigned char *) src; | 35 const unsigned char *s = (const unsigned char *)src; 36 unsigned char *d = (unsigned char *)dst; |
37 unsigned int i; 38 39 for (i = 0; i < 6; i++) 40 d[i] = s[5 - i]; 41} 42EXPORT_SYMBOL(baswap); 43 44/* Bluetooth error codes to Unix errno mapping */ --- 156 unchanged lines hidden --- | 37 unsigned int i; 38 39 for (i = 0; i < 6; i++) 40 d[i] = s[5 - i]; 41} 42EXPORT_SYMBOL(baswap); 43 44/* Bluetooth error codes to Unix errno mapping */ --- 156 unchanged lines hidden --- |