diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-06-18 18:48:36 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-06-18 18:48:36 +0000 |
commit | e549aca0820bd58dc7b714f365ff0c46a941dc65 (patch) | |
tree | d407df1a4dd75d962b1592989d1ea9dbf606c67a /src | |
parent | 9942261d0febb9ef243ffe810421451e97925e68 (diff) |
Return correct error if adds was not found.
Diffstat (limited to 'src')
-rw-r--r-- | src/hci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -425,6 +425,7 @@ int hci_devid(char *str) if (hci_devba(id, &ba) < 0) return -1; } else { + errno = ENODEV; str2ba(str, &ba); id = hci_for_each_dev(HCI_UP, __same_bdaddr, (long) &ba); } |