From d436459deed7ec8a472f6d27c4f0e3539aa482ef Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 12 Feb 2003 13:34:55 +0000 Subject: bugfix --- tools/hciconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 0c8437f3..ed8fdcd2 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -486,7 +486,7 @@ void cmd_class(int ctl, int hdev, char *opt) exit(1); } if (opt) { - uint32_t cod = htobl(strtoul(opt, NULL, 16)); + uint32_t cod = strtoul(opt, NULL, 16); if (0 > hci_write_class_of_dev(s, cod, 1000)) { printf("Can't write local class of device on hci%d. %s(%d)\n", hdev, strerror(errno), errno); -- cgit