diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-03-22 19:08:41 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-03-22 19:08:41 +0000 |
commit | 67230a9bb66546eedfe2a6587c125e3d3c23abf2 (patch) | |
tree | edcf553332db722755b17e8d3c3c2a4992e45945 /tools | |
parent | 9738e36a881497bc94d60b273f50dfa27b95030c (diff) |
Fix compiler options and warnings
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hciconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 3cae9792..ad576c96 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -389,7 +389,7 @@ void cmd_inq_parms(int ctl, int hdev, char *opt) memset(&rq, 0, sizeof(rq)); if (opt) { - uint16_t window, interval; + unsigned int window, interval; write_inq_activity_cp cp; if (sscanf(opt,"%4u/%4u", &window, &interval)!=2) { @@ -402,8 +402,8 @@ void cmd_inq_parms(int ctl, int hdev, char *opt) rq.cparam = &cp; rq.clen = WRITE_INQ_ACTIVITY_CP_SIZE; - cp.window = htobs(window); - cp.interval = htobs(interval); + cp.window = htobs((uint16_t)window); + cp.interval = htobs((uint16_t)interval); if (window < 0x12 || window > 0x1000) printf("Warning: inquiry window out of range!\n"); |