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
/
health
/
health.cpp
diff --git
a/src/common/health/health.cpp
b/src/common/health/health.cpp
index 9d33ffd2fc7b8e487885bc69d0fbce0c6875f09d..8181eab931c07aa0c131c8157ce85a6584f8d11c 100644
(file)
--- a/
src/common/health/health.cpp
+++ b/
src/common/health/health.cpp
@@
-67,11
+67,11
@@
struct health_app *health_app_create(int nr_types)
{
struct health_app *ha;
{
struct health_app *ha;
- ha =
(health_app *) zmalloc(sizeof(*ha)
);
+ ha =
zmalloc<health_app>(
);
if (!ha) {
return NULL;
}
if (!ha) {
return NULL;
}
- ha->flags =
(health_flags *) zmalloc(sizeof(*ha->flags) *
nr_types);
+ ha->flags =
calloc<health_flags>(
nr_types);
if (!ha->flags) {
goto error_flags;
}
if (!ha->flags) {
goto error_flags;
}
This page took
0.023458 seconds
and
4
git commands to generate.