summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/hccontrol
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2015-09-09 13:24:39 +0000
committertakawata <takawata@FreeBSD.org>2015-09-09 13:24:39 +0000
commit1f333be9cdbfb802d8be7ce5ed17fb9b01706823 (patch)
tree02f05fc93979195ae6b145c399f94aeb92057137 /usr.sbin/bluetooth/hccontrol
parent1653ce1fd6ffe06526070bda0e24f4e637dc66f9 (diff)
downloadFreeBSD-src-1f333be9cdbfb802d8be7ce5ed17fb9b01706823.zip
FreeBSD-src-1f333be9cdbfb802d8be7ce5ed17fb9b01706823.tar.gz
fix compare argument for address type.
Submitted by: issei10193 (via Twitter)
Diffstat (limited to 'usr.sbin/bluetooth/hccontrol')
-rw-r--r--usr.sbin/bluetooth/hccontrol/le.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/le.c b/usr.sbin/bluetooth/hccontrol/le.c
index afb151e..c7be20d 100644
--- a/usr.sbin/bluetooth/hccontrol/le.c
+++ b/usr.sbin/bluetooth/hccontrol/le.c
@@ -88,7 +88,7 @@ le_set_scan_param(int s, int argc, char *argv[])
if (strcmp(argv[3], "public") == 0)
adrtype = 0;
- else if (strcmp(argv[0], "random") == 0)
+ else if (strcmp(argv[3], "random") == 0)
adrtype = 1;
else
return USAGE;
OpenPOWER on IntegriCloud