summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-26 22:26:49 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-26 22:26:49 +0000
commit652785638e4bf41e1a60827005d1253a0af7b3e8 (patch)
tree7ee31b4f36bd536559336b01fac14bd0bbe2fa86
parentf544b5e43cc3c64d43e73a3fbfc5fd045b6de00c (diff)
Use bt_malloc() for address translation functions
-rw-r--r--src/bluetooth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth.c b/src/bluetooth.c
index 1c01e2d9..9ba19c50 100644
--- a/src/bluetooth.c
+++ b/src/bluetooth.c
@@ -54,7 +54,7 @@ void baswap(bdaddr_t *dst, const bdaddr_t *src)
char *batostr(const bdaddr_t *ba)
{
- char *str = malloc(18);
+ char *str = bt_malloc(18);
if (!str)
return NULL;
@@ -69,7 +69,7 @@ bdaddr_t *strtoba(const char *str)
const char *ptr = str;
int i;
- uint8_t *ba = malloc(sizeof(bdaddr_t));
+ uint8_t *ba = bt_malloc(sizeof(bdaddr_t));
if (!ba)
return NULL;