summaryrefslogtreecommitdiff
path: root/sysutils/netbt-hcidump/patches/patch-al
blob: 3f7839cde4ddda68c0952c4f004cf66dd382a45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
$NetBSD: patch-al,v 1.2 2011/06/19 13:02:35 plunky Exp $

--- src/bt_lib.c.orig	2011-06-19 12:38:18.000000000 +0000
+++ src/bt_lib.c
@@ -35,8 +35,8 @@
 #include <string.h>
 #include <sys/socket.h>
 
-#include "bluetooth.h"
-#include "hci.h"
+#include <bluetooth/bluetooth.h>
+#include <bluetooth/hci.h>
 
 void baswap(bdaddr_t *dst, const bdaddr_t *src)
 {
@@ -48,6 +48,7 @@ void baswap(bdaddr_t *dst, const bdaddr_
 		d[i] = s[5-i];
 }
 
+#if 0
 char *batostr(const bdaddr_t *ba)
 {
 	char *str = bt_malloc(18);
@@ -73,6 +74,7 @@ bdaddr_t *strtoba(const char *str)
 
 	return ba;
 }
+#endif
 
 int ba2str(const bdaddr_t *ba, char *str)
 {
@@ -80,6 +82,7 @@ int ba2str(const bdaddr_t *ba, char *str
 		ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]);
 }
 
+#if 0
 int str2ba(const char *str, bdaddr_t *ba)
 {
 	bdaddr_t b;
@@ -175,6 +178,7 @@ int basnprintf(char *str, size_t size, c
 
 	return len;
 }
+#endif
 
 void *bt_malloc(size_t size)
 {
@@ -186,6 +190,7 @@ void bt_free(void *ptr)
 	free(ptr);
 }
 
+#if 0
 /* Bluetooth error codes to Unix errno mapping */
 int bt_error(uint16_t code)
 {
@@ -260,6 +265,7 @@ int bt_error(uint16_t code)
 		return ENOSYS;
 	}
 }
+#endif
 
 char *bt_compidtostr(int compid)
 {