projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Revert of 814b4934e2604a419bcb8eec57c0450dbb47e2c3
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-registry.cpp
diff --git
a/src/bin/lttng-sessiond/ust-registry.cpp
b/src/bin/lttng-sessiond/ust-registry.cpp
index 0b92d19c52b3aa459cd22110d7230c753394e1d5..b327fdf32c449dfc082af8a55eebd9dd8b99c145 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-registry.cpp
+++ b/
src/bin/lttng-sessiond/ust-registry.cpp
@@
-288,7
+288,7
@@
static struct ust_registry_event *alloc_event(int session_objd,
return NULL;
}
return NULL;
}
- event =
(ust_registry_event *) zmalloc(sizeof(*event)
);
+ event =
zmalloc<ust_registry_event>(
);
if (!event) {
PERROR("zmalloc ust registry event");
goto error;
if (!event) {
PERROR("zmalloc ust registry event");
goto error;
@@
-630,7
+630,7
@@
int ust_registry_create_or_find_enum(struct ust_registry_session *session,
}
/* Check if the enumeration was already dumped */
}
/* Check if the enumeration was already dumped */
- reg_enum =
(ust_registry_enum *) zmalloc(sizeof(*reg_enum)
);
+ reg_enum =
zmalloc<ust_registry_enum>(
);
if (!reg_enum) {
PERROR("zmalloc ust registry enumeration");
ret = -ENOMEM;
if (!reg_enum) {
PERROR("zmalloc ust registry enumeration");
ret = -ENOMEM;
@@
-756,7
+756,7
@@
int ust_registry_channel_add(struct ust_registry_session *session,
LTTNG_ASSERT(session);
LTTNG_ASSERT(session);
- chan =
(ust_registry_channel *) zmalloc(sizeof(*chan)
);
+ chan =
zmalloc<ust_registry_channel>(
);
if (!chan) {
PERROR("zmalloc ust registry channel");
ret = -ENOMEM;
if (!chan) {
PERROR("zmalloc ust registry channel");
ret = -ENOMEM;
@@
-887,7
+887,7
@@
int ust_registry_session_init(struct ust_registry_session **sessionp,
LTTNG_ASSERT(sessionp);
LTTNG_ASSERT(sessionp);
- session =
(ust_registry_session *) zmalloc(sizeof(*session)
);
+ session =
zmalloc<ust_registry_session>(
);
if (!session) {
PERROR("zmalloc ust registry session");
goto error_alloc;
if (!session) {
PERROR("zmalloc ust registry session");
goto error_alloc;
This page took
0.02785 seconds
and
4
git commands to generate.