summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-08-16 10:11:10 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-08-16 10:11:10 +0000
commit4a5bc48ff3c2a2f3acdacc6fc6ee2632687455e7 (patch)
tree56945223a869ca6d87cc05a277d0ce86f6d50f7a
parent5c8acb2c0dabd7fe0c8397d97c140d78b7bd8cd7 (diff)
Don't include asm/types.h and asm/byteorder.h
-rw-r--r--tools/l2ping.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/l2ping.c b/tools/l2ping.c
index 85d12eee..af056bc6 100644
--- a/tools/l2ping.c
+++ b/tools/l2ping.c
@@ -51,9 +51,6 @@
#include <resolv.h>
#include <netdb.h>
-#include <asm/types.h>
-#include <asm/byteorder.h>
-
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
@@ -134,7 +131,7 @@ static void ping(char *svr)
/* Build command header */
cmd->code = L2CAP_ECHO_REQ;
cmd->ident = id;
- cmd->len = __cpu_to_le16(size);
+ cmd->len = htobs(size);
gettimeofday(&tv_send, NULL);
@@ -171,7 +168,7 @@ static void ping(char *svr)
exit(1);
}
- cmd->len = __le16_to_cpu(cmd->len);
+ cmd->len = btohs(cmd->len);
/* Check for our id */
if( cmd->ident != id )