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
/
actions
/
rate-policy.cpp
diff --git
a/src/common/actions/rate-policy.cpp
b/src/common/actions/rate-policy.cpp
index 58db624d8312814bff23b1fec56e78ee4d5c698a..25f8e4083387b11a53f0a74e92c4b6bcb4290306 100644
(file)
--- a/
src/common/actions/rate-policy.cpp
+++ b/
src/common/actions/rate-policy.cpp
@@
-487,7
+487,7
@@
struct lttng_rate_policy *lttng_rate_policy_every_n_create(uint64_t interval)
goto end;
}
goto end;
}
- policy =
(lttng_rate_policy_every_n *) zmalloc(sizeof(struct lttng_rate_policy_every_n)
);
+ policy =
zmalloc<lttng_rate_policy_every_n>(
);
if (!policy) {
goto end;
}
if (!policy) {
goto end;
}
@@
-702,7
+702,7
@@
struct lttng_rate_policy *lttng_rate_policy_once_after_n_create(
goto end;
}
goto end;
}
- policy =
(lttng_rate_policy_once_after_n *) zmalloc(sizeof(struct lttng_rate_policy_once_after_n)
);
+ policy =
zmalloc<lttng_rate_policy_once_after_n>(
);
if (!policy) {
goto end;
}
if (!policy) {
goto end;
}
This page took
0.033664 seconds
and
4
git commands to generate.