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
/
notification-thread.cpp
diff --git
a/src/bin/lttng-sessiond/notification-thread.cpp
b/src/bin/lttng-sessiond/notification-thread.cpp
index 74e37902db0056d5599fa57dd4da4a72678451ea..cd95e68858f58d68521c29e2d752a15f088430dc 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread.cpp
+++ b/
src/bin/lttng-sessiond/notification-thread.cpp
@@
-94,7
+94,7
@@
struct notification_thread_handle *notification_thread_handle_create(
struct notification_thread_handle *handle;
struct lttng_pipe *event_pipe = NULL;
struct notification_thread_handle *handle;
struct lttng_pipe *event_pipe = NULL;
- handle =
(notification_thread_handle *) zmalloc(sizeof(*handle)
);
+ handle =
zmalloc<notification_thread_handle>(
);
if (!handle) {
goto end;
}
if (!handle) {
goto end;
}
@@
-162,7
+162,7
@@
char *get_notification_channel_sock_path(void)
bool is_root = !getuid();
char *sock_path;
bool is_root = !getuid();
char *sock_path;
- sock_path =
(char *) zmalloc
(LTTNG_PATH_MAX);
+ sock_path =
calloc<char>
(LTTNG_PATH_MAX);
if (!sock_path) {
goto error;
}
if (!sock_path) {
goto error;
}
This page took
0.024908 seconds
and
4
git commands to generate.