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
/
dispatch.cpp
diff --git
a/src/bin/lttng-sessiond/dispatch.cpp
b/src/bin/lttng-sessiond/dispatch.cpp
index 7988f1ba8a212894dc09d7c3e8338f267b6fb221..89d7c7c2e0d1fb894b02f10d7b17223ebbef9bee 100644
(file)
--- a/
src/bin/lttng-sessiond/dispatch.cpp
+++ b/
src/bin/lttng-sessiond/dispatch.cpp
@@
-292,7
+292,7
@@
static void *thread_dispatch_ust_registration(void *data)
ust_cmd->reg_msg.major, ust_cmd->reg_msg.minor);
if (ust_cmd->reg_msg.type == LTTNG_UST_CTL_SOCKET_CMD) {
ust_cmd->reg_msg.major, ust_cmd->reg_msg.minor);
if (ust_cmd->reg_msg.type == LTTNG_UST_CTL_SOCKET_CMD) {
- wait_node =
(ust_reg_wait_node *) zmalloc(sizeof(*wait_node)
);
+ wait_node =
zmalloc<ust_reg_wait_node>(
);
if (!wait_node) {
PERROR("zmalloc wait_node dispatch");
ret = close(ust_cmd->sock);
if (!wait_node) {
PERROR("zmalloc wait_node dispatch");
ret = close(ust_cmd->sock);
@@
-510,7
+510,7
@@
bool launch_ust_dispatch_thread(struct ust_cmd_queue *cmd_queue,
struct lttng_thread *thread;
struct thread_notifiers *notifiers;
struct lttng_thread *thread;
struct thread_notifiers *notifiers;
- notifiers =
(thread_notifiers *) zmalloc(sizeof(*notifiers)
);
+ notifiers =
zmalloc<thread_notifiers>(
);
if (!notifiers) {
goto error;
}
if (!notifiers) {
goto error;
}
This page took
0.025013 seconds
and
4
git commands to generate.