Diff between 22974ec9ef2a90a869b5b5f59c0c008d283e71bf and 0c78d8cb1fee8df9f7344cdac14f75c4d23ad9eb

Changed Files

File Additions Deletions Status
tools/hcidump.c +0 -16 modified

Full Patch

diff --git a/tools/hcidump.c b/tools/hcidump.c
index d955a78..14816b5 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";