summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-06-18 18:48:36 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-06-18 18:48:36 +0000
commite549aca0820bd58dc7b714f365ff0c46a941dc65 (patch)
treed407df1a4dd75d962b1592989d1ea9dbf606c67a
parent9942261d0febb9ef243ffe810421451e97925e68 (diff)
Return correct error if adds was not found.
-rw-r--r--src/hci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index c0be8df2..1424ddcd 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -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);
}