projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
consumer
/
metadata-bucket.cpp
diff --git
a/src/common/consumer/metadata-bucket.cpp
b/src/common/consumer/metadata-bucket.cpp
index ed78ec9472f800e3b55358bd9c5e235135bf52e9..f9c35e22ce4c4d3e25521c53e02d91dc9694c1eb 100644
(file)
--- a/
src/common/consumer/metadata-bucket.cpp
+++ b/
src/common/consumer/metadata-bucket.cpp
@@
-25,9
+25,7
@@
struct metadata_bucket {
struct metadata_bucket *metadata_bucket_create(
metadata_bucket_flush_cb flush, void *data)
{
struct metadata_bucket *metadata_bucket_create(
metadata_bucket_flush_cb flush, void *data)
{
- struct metadata_bucket *bucket;
-
- bucket = (metadata_bucket *) zmalloc(sizeof(typeof(*bucket)));
+ metadata_bucket *bucket = zmalloc<metadata_bucket>();
if (!bucket) {
PERROR("Failed to allocate buffer bucket");
goto end;
if (!bucket) {
PERROR("Failed to allocate buffer bucket");
goto end;
This page took
0.024388 seconds
and
4
git commands to generate.