summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/sdpcontrol
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2015-04-07 16:48:23 +0000
committertakawata <takawata@FreeBSD.org>2015-04-07 16:48:23 +0000
commit411a5fdbb3dd161f7c93dafe3156177d62209a1c (patch)
tree3407105e73d99b25919959b8ea59bc192c2c9f36 /usr.sbin/bluetooth/sdpcontrol
parent739c57d8c2732c511b7fd032852bd9c98731775a (diff)
downloadFreeBSD-src-411a5fdbb3dd161f7c93dafe3156177d62209a1c.zip
FreeBSD-src-411a5fdbb3dd161f7c93dafe3156177d62209a1c.tar.gz
Check l2cap socket initialisation and define L2CAP_SOCKET_CHECKED
This will fix build.
Diffstat (limited to 'usr.sbin/bluetooth/sdpcontrol')
-rw-r--r--usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c1
-rw-r--r--usr.sbin/bluetooth/sdpcontrol/search.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
index fca2015..65ee3d0 100644
--- a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
+++ b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c
@@ -30,6 +30,7 @@
*/
#include <assert.h>
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <err.h>
#include <errno.h>
diff --git a/usr.sbin/bluetooth/sdpcontrol/search.c b/usr.sbin/bluetooth/sdpcontrol/search.c
index e7d8244..acc8c16 100644
--- a/usr.sbin/bluetooth/sdpcontrol/search.c
+++ b/usr.sbin/bluetooth/sdpcontrol/search.c
@@ -30,6 +30,7 @@
*/
#include <netinet/in.h>
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <ctype.h>
#include <sdp.h>
OpenPOWER on IntegriCloud