[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33724 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33724 - gnunet/src/transport |
Date: |
Tue, 17 Jun 2014 22:34:16 +0200 |
Author: grothoff
Date: 2014-06-17 22:34:16 +0200 (Tue, 17 Jun 2014)
New Revision: 33724
Modified:
gnunet/src/transport/gnunet-helper-transport-bluetooth.c
Log:
-fix channel data range to make -1 legal value
Modified: gnunet/src/transport/gnunet-helper-transport-bluetooth.c
===================================================================
--- gnunet/src/transport/gnunet-helper-transport-bluetooth.c 2014-06-17
20:31:24 UTC (rev 33723)
+++ gnunet/src/transport/gnunet-helper-transport-bluetooth.c 2014-06-17
20:34:16 UTC (rev 33724)
@@ -965,7 +965,7 @@
sdp_list_t *search_list = 0, *attrid_list = 0, *response_list = 0, *it = 0;
uuid_t svc_uuid;
uint32_t range = 0x0000ffff;
- uint8_t channel = -1;
+ int channel = -1;
/* Connect to the local SDP server */
session = sdp_connect (BDADDR_ANY, &dest, 0);
@@ -1002,9 +1002,12 @@
sdp_close (session);
- if (channel == -1)
- fprintf (stderr, "Failed to find the listening channel for interface
`%.*s': %s\n",
- IFNAMSIZ, dev->iface, strerror (errno));
+ if (-1 == channel)
+ fprintf (stderr,
+ "Failed to find the listening channel for interface `%.*s':
%s\n",
+ IFNAMSIZ,
+ dev->iface,
+ strerror (errno));
return channel;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33724 - gnunet/src/transport,
gnunet <=