Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-sessiond / save.cpp
index 2055e867de5eac86496a7cd599c0aee488510026..757b97226a1bb5be53eb2650add9f204fd13a1be 100644 (file)
 #include <urcu/uatomic.h>
 #include <unistd.h>
 
-#include <common/defaults.h>
-#include <common/error.h>
-#include <common/config/session-config.h>
-#include <common/utils.h>
-#include <common/runas.h>
-#include <lttng/save-internal.h>
-
-#include "kernel.h"
-#include "save.h"
-#include "session.h"
-#include "lttng-syscall.h"
-#include "trace-ust.h"
-#include "agent.h"
+#include <common/defaults.hpp>
+#include <common/error.hpp>
+#include <common/config/session-config.hpp>
+#include <common/utils.hpp>
+#include <common/runas.hpp>
+#include <lttng/save-internal.hpp>
+
+#include "kernel.hpp"
+#include "save.hpp"
+#include "session.hpp"
+#include "lttng-syscall.hpp"
+#include "trace-ust.hpp"
+#include "agent.hpp"
 
 /* Return LTTNG_OK on success else a LTTNG_ERR* code. */
 static
@@ -2322,7 +2322,7 @@ int save_consumer_output(struct config_writer *writer,
        {
                char *uri;
 
-               uri = (char *) zmalloc(PATH_MAX);
+               uri = calloc<char>(PATH_MAX);
                if (!uri) {
                        ret = LTTNG_ERR_NOMEM;
                        goto end;
This page took 0.050576 seconds and 4 git commands to generate.