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
/
lib
/
lttng-ctl
/
snapshot.cpp
diff --git
a/src/lib/lttng-ctl/snapshot.cpp
b/src/lib/lttng-ctl/snapshot.cpp
index b9bac9aa84b0c2d3cc90c4efcf6593922dbbc1af..baec7357f6b8c3becf5a90df7937ed63aba64810 100644
(file)
--- a/
src/lib/lttng-ctl/snapshot.cpp
+++ b/
src/lib/lttng-ctl/snapshot.cpp
@@
-120,7
+120,7
@@
int lttng_snapshot_list_output(const char *session_name,
goto error;
}
goto error;
}
- new_list =
(lttng_snapshot_output_list *) zmalloc(sizeof(*new_list)
);
+ new_list =
zmalloc<lttng_snapshot_output_list>(
);
if (!new_list) {
ret = -LTTNG_ERR_NOMEM;
goto error;
if (!new_list) {
ret = -LTTNG_ERR_NOMEM;
goto error;
@@
-240,7
+240,7
@@
struct lttng_snapshot_output *lttng_snapshot_output_create(void)
{
struct lttng_snapshot_output *output;
{
struct lttng_snapshot_output *output;
- output =
(lttng_snapshot_output *) zmalloc(sizeof(struct lttng_snapshot_output)
);
+ output =
zmalloc<lttng_snapshot_output>(
);
if (!output) {
goto error;
}
if (!output) {
goto error;
}
This page took
0.024265 seconds
and
4
git commands to generate.