Build fix: missing stdio.h include in signal-helper.hpp
[lttng-tools.git] / src / bin / lttng / commands / track-untrack.cpp
index f7b268f71d11edbb7087771d27e829e498f89467..e311304f4aa40bf10a491dab12d2b6f41402ab56 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "../command.hpp"
 
+namespace {
 struct process_attr_command_args {
        enum lttng_process_attr process_attr;
        /* Present in the user's command. */
@@ -37,6 +38,7 @@ struct process_attr_command_args {
        bool all;
        struct lttng_dynamic_pointer_array string_args;
 };
+} /* namespace */
 
 enum cmd_type {
        CMD_TRACK,
@@ -87,7 +89,7 @@ static void process_attr_command_init(struct process_attr_command_args *cmd,
 {
        cmd->process_attr = process_attr;
        cmd->all = false;
-       lttng_dynamic_pointer_array_init(&cmd->string_args, NULL);
+       lttng_dynamic_pointer_array_init(&cmd->string_args, free);
 }
 
 static void process_attr_command_fini(struct process_attr_command_args *cmd)
This page took 0.028485 seconds and 4 git commands to generate.