Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / channel.cpp
index e3bb232fa155d32d9620c07c0a0c87bc406e0b85..540fc973405de16ebcc4d3fddf450827e9018f03 100644 (file)
@@ -34,13 +34,13 @@ struct lttng_channel *channel_new_default_attr(int dom,
        const char *channel_name = DEFAULT_CHANNEL_NAME;
        struct lttng_channel_extended *extended_attr = NULL;
 
-       chan = (lttng_channel *) zmalloc(sizeof(struct lttng_channel));
+       chan = zmalloc<lttng_channel>();
        if (chan == NULL) {
                PERROR("zmalloc channel init");
                goto error_alloc;
        }
 
-       extended_attr = (lttng_channel_extended *) zmalloc(sizeof(struct lttng_channel_extended));
+       extended_attr = zmalloc<lttng_channel_extended>();
        if (!extended_attr) {
                PERROR("zmalloc channel extended init");
                goto error;
This page took 0.024744 seconds and 4 git commands to generate.