From f30642739c0016e435eb65d9b595f507010008b9 Mon Sep 17 00:00:00 2001 From: sc Date: Fri, 22 Dec 2000 10:16:44 +0000 Subject: Removed debug message --- comm/IrdaAddress.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'comm/IrdaAddress.cc') diff --git a/comm/IrdaAddress.cc b/comm/IrdaAddress.cc index 9896564..6797980 100644 --- a/comm/IrdaAddress.cc +++ b/comm/IrdaAddress.cc @@ -88,8 +88,8 @@ IvlIrdaAddress :: DiscoverPeers (int fd, IvlListOf & al) socklen_t len = 1024; byte buf[1024]; struct irda_device_list *l = (struct irda_device_list *) buf; - getsockopt (fd, SOL_IRLMP, IRLMP_ENUMDEVICES, buf, &len); - + if (getsockopt (fd, SOL_IRLMP, IRLMP_ENUMDEVICES, buf, &len) < 0) + return 0; if (len <= 0) { fprintf (stderr, "no device found\n"); @@ -98,7 +98,7 @@ IvlIrdaAddress :: DiscoverPeers (int fd, IvlListOf & al) struct irda_device_info* d = l->dev; for (int i = 0; i < l->len ; ++i, ++d) { - fprintf (stderr, "found %s at [0x%08x, 0x%08x]\n", d->info, d->saddr, d->daddr); +// fprintf (stderr, "found %s at [0x%08x, 0x%08x]\n", d->info, d->saddr, d->daddr); al.Append (new IvlIrdaAddress (d->daddr)); } return l->len; -- cgit v1.1