diff options
author | Aravind Machiry <machiry@cs.ucsb.edu> | 2020-09-28 12:20:02 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-10-07 15:56:21 -0700 |
commit | ed535b88c056c1284dbe327fa1acd6a14e0b753e (patch) | |
tree | 85c62107f96252db2a3fe0e85443c0160afdecc0 /lib/bluetooth.h | |
parent | 73bce2208627042bbc698715d00e99f0501f3258 (diff) | |
download | bluez-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.h | 1 |
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); |