diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-05 07:11:32 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2005-08-05 07:11:32 +0000 | 
| commit | a73893381f0b7be98b8eb99d31ff834c7658d27c (patch) | |
| tree | 9e5957613724a7b94b6423c2ffe403b14e10a914 /src | |
| parent | e602dbfade3e4ef56ef04a81489ba0374133a313 (diff) | |
Introduce bt_malloc() and bt_free() functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/bluetooth.c | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/src/bluetooth.c b/src/bluetooth.c index c54d63e3..1c01e2d9 100644 --- a/src/bluetooth.c +++ b/src/bluetooth.c @@ -36,6 +36,7 @@  #include <errno.h>  #include <stdarg.h>  #include <stdlib.h> +#include <malloc.h>  #include <string.h>  #include <sys/socket.h> @@ -162,6 +163,16 @@ int basnprintf(char *str, size_t size, const char *format, ...)  	return len;  } +void *bt_malloc(size_t size) +{ +	return malloc(size); +} + +void bt_free(void *ptr) +{ +	free(ptr); +} +  /* Bluetooth error codes to Unix errno mapping */  int bt_error(uint16_t code)  { | 
