Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread.cpp
index 74e37902db0056d5599fa57dd4da4a72678451ea..cd95e68858f58d68521c29e2d752a15f088430dc 100644 (file)
@@ -94,7 +94,7 @@ struct notification_thread_handle *notification_thread_handle_create(
        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;
        }
@@ -162,7 +162,7 @@ char *get_notification_channel_sock_path(void)
        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;
        }
This page took 0.031547 seconds and 4 git commands to generate.