summaryrefslogtreecommitdiff
path: root/lib/bluetooth.h
diff options
context:
space:
mode:
authorAravind Machiry <machiry@cs.ucsb.edu>2020-09-28 12:20:02 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-10-07 15:56:21 -0700
commited535b88c056c1284dbe327fa1acd6a14e0b753e (patch)
tree85c62107f96252db2a3fe0e85443c0160afdecc0 /lib/bluetooth.h
parent73bce2208627042bbc698715d00e99f0501f3258 (diff)
downloadbluez-ed535b88c056c1284dbe327fa1acd6a14e0b753e.tar.gz
lib: Replace malloc/memset(..0..) with bt_malloc0
This patch replaces various instances of malloc and subsequent memset(..,0,..) with bt_malloc0 (i.e., calloc) for efficiency.
Diffstat (limited to 'lib/bluetooth.h')
-rw-r--r--lib/bluetooth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 1619f5f08..648fc84ec 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -349,6 +349,7 @@ int basprintf(char *str, const char *format, ...);
int basnprintf(char *str, size_t size, const char *format, ...);
void *bt_malloc(size_t size);
+void *bt_malloc0(size_t size);
void bt_free(void *ptr);
int bt_error(uint16_t code);