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
/
bin
/
lttng-sessiond
/
tracker.cpp
diff --git
a/src/bin/lttng-sessiond/tracker.cpp
b/src/bin/lttng-sessiond/tracker.cpp
index 204ade426316b288afd6e59d1ceade61f82a706f..7d587280645b0ebe72381075038994a15f17d605 100644
(file)
--- a/
src/bin/lttng-sessiond/tracker.cpp
+++ b/
src/bin/lttng-sessiond/tracker.cpp
@@
-49,7
+49,7
@@
struct process_attr_tracker *process_attr_tracker_create(void)
{
struct process_attr_tracker *tracker;
{
struct process_attr_tracker *tracker;
- tracker =
(process_attr_tracker *) zmalloc(sizeof(*tracker)
);
+ tracker =
zmalloc<process_attr_tracker>(
);
if (!tracker) {
return NULL;
}
if (!tracker) {
return NULL;
}
@@
-201,7
+201,7
@@
enum process_attr_tracker_status process_attr_tracker_inclusion_set_add_value(
goto end;
}
goto end;
}
- value_node =
(process_attr_tracker_value_node *) zmalloc(sizeof(*value_node)
);
+ value_node =
zmalloc<process_attr_tracker_value_node>(
);
if (!value_node) {
status = PROCESS_ATTR_TRACKER_STATUS_ERROR;
goto end;
if (!value_node) {
status = PROCESS_ATTR_TRACKER_STATUS_ERROR;
goto end;
This page took
0.023481 seconds
and
4
git commands to generate.