diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-21 11:07:03 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-08-21 11:07:03 +0000 |
commit | 01416cc1b3b051c5b876f0ad8f9233a390ed7225 (patch) | |
tree | 4776e8418b83832f8fdf37164cf775a353d1498c /hcid/security.c | |
parent | 46b2bfea1a997ffacc4c46c53532681efdfa4a52 (diff) |
Use hci_devinfo in favor of HCIGETDEVINFO ioctl where possible
Diffstat (limited to 'hcid/security.c')
-rw-r--r-- | hcid/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/security.c b/hcid/security.c index 9b02f213..08a5835d 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -821,11 +821,11 @@ void start_security_manager(int hdev) return; } - di->dev_id = hdev; - if (ioctl(dev, HCIGETDEVINFO, (void *)di)) { + if (hci_devinfo(hdev, di) < 0) { error("Can't get device info: %s (%d)", strerror(errno), errno); close(dev); + free(di); return; } |