From 0c78d8cb1fee8df9f7344cdac14f75c4d23ad9eb Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 18 Mar 2011 15:10:19 -0400 Subject: [PATCH] hcidump: Fix compilation against latest BlueZ BlueZ now has ntoh64()/hton64() functions in bluetooth.h, therefore the hcidump local copy is not necessary. --- tools/hcidump.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tools/hcidump.c b/tools/hcidump.c index d955a78f4..14816b5b9 100644 --- a/tools/hcidump.c +++ b/tools/hcidump.c @@ -50,22 +50,6 @@ #include "parser.h" #include "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"; -- 2.47.3