Page MenuHomeFreeBSD

D45463.id139345.diff
No OneTemporary

D45463.id139345.diff

diff --git a/usr.sbin/bluetooth/btpand/btpand.c b/usr.sbin/bluetooth/btpand/btpand.c
--- a/usr.sbin/bluetooth/btpand/btpand.c
+++ b/usr.sbin/bluetooth/btpand/btpand.c
@@ -143,9 +143,11 @@
case 's': /* service */
case 'S': /* service (no SDP) */
- for (ul = 0; strcasecmp(optarg, services[ul].name); ul++) {
+ for (ul = 0; ; ul++) {
if (ul == __arraycount(services))
errx(EXIT_FAILURE, "%s: unknown service", optarg);
+ if (strcasecmp(optarg, services[ul].name) == 0)
+ break;
}
if (ch == 's')

File Metadata

Mime Type
text/plain
Expires
Thu, May 14, 9:48 PM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33062936
Default Alt Text
D45463.id139345.diff (534 B)

Event Timeline