diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2011-03-18 15:10:19 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-21 11:07:17 +0200 |
commit | 95ea4ff5c9c7dbda2f3faaef4e5cd46d542a48c8 (patch) | |
tree | 73740f65b2a1a765628ffa3186c15d9088654378 | |
parent | 71406a5fddcc17f54c22f19bc1166ecbc510d64a (diff) | |
download | hcidump-95ea4ff5c9c7dbda2f3faaef4e5cd46d542a48c8.tar.gz |
Fix compilation against latest BlueZ
BlueZ now has ntoh64()/hton64() functions in bluetooth.h, therefore the
hcidump local copy is not necessary.
-rw-r--r-- | src/hcidump.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/hcidump.c b/src/hcidump.c index af086c7..2023130 100644 --- a/src/hcidump.c +++ b/src/hcidump.c @@ -50,22 +50,6 @@ #include "parser/parser.h" #include "parser/sdp.h" -#if __BYTE_ORDER == __LITTLE_ENDIAN -static inline uint64_t ntoh64(uint64_t n) -{ - uint64_t h; - uint64_t tmp = ntohl(n & 0x00000000ffffffff); - h = ntohl(n >> 32); - h |= tmp << 32; - return h; -} -#elif __BYTE_ORDER == __BIG_ENDIAN -#define ntoh64(x) (x) -#else -#error "Unknown byte order" -#endif -#define hton64(x) ntoh64(x) - #define SNAP_LEN HCI_MAX_FRAME_SIZE #define DEFAULT_PORT "10839"; |