svn commit: r287597 - head/usr.sbin/bluetooth/hccontrol

Takanori Watanabe takawata at FreeBSD.org
Wed Sep 9 13:24:40 UTC 2015


Author: takawata
Date: Wed Sep  9 13:24:39 2015
New Revision: 287597
URL: https://svnweb.freebsd.org/changeset/base/287597

Log:
  fix compare argument for address type.
  
  Submitted by: issei10193 (via Twitter)

Modified:
  head/usr.sbin/bluetooth/hccontrol/le.c

Modified: head/usr.sbin/bluetooth/hccontrol/le.c
==============================================================================
--- head/usr.sbin/bluetooth/hccontrol/le.c	Wed Sep  9 11:51:14 2015	(r287596)
+++ head/usr.sbin/bluetooth/hccontrol/le.c	Wed Sep  9 13:24:39 2015	(r287597)
@@ -88,7 +88,7 @@ le_set_scan_param(int s, int argc, char 
 	
 	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;


More information about the svn-src-head mailing list