Files
pkgsrc-ng/sysutils/netbt-hcidump/patches/patch-al
T
2013-09-26 17:14:40 +02:00

53 lines
1012 B
Plaintext

$NetBSD: patch-al,v 1.3 2012/02/15 09:30:23 plunky Exp $
--- lib/bluetooth.c.orig 2011-12-22 00:18:58.000000000 +0000
+++ lib/bluetooth.c
@@ -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)
{