Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git] / tests / regression / tools / notification / notification.cpp
index c6205ef63757c29e45169cb8a607602c2cccfa05..d3d486be3574a85c2f8bc5f6abc2ec0030d4834a 100644 (file)
@@ -22,8 +22,8 @@
 #include <signal.h>
 #include <poll.h>
 
-#include <common/compat/errno.h>
-#include <common/macros.h>
+#include <common/compat/errno.hpp>
+#include <common/macros.hpp>
 #include <lttng/lttng.h>
 
 #include <tap/tap.h>
@@ -48,6 +48,7 @@ enum field_type {
        FIELD_TYPE_ARRAY_FIELD,
 };
 
+namespace {
 struct capture_base_field_tuple {
        const char *field_name;
        enum field_type field_type;
@@ -58,6 +59,7 @@ struct capture_base_field_tuple {
        validate_cb validate_ust;
        validate_cb validate_kernel;
 };
+} /* namespace */
 
 static
 const char *field_value_type_to_str(enum lttng_event_field_value_type type)
This page took 0.024055 seconds and 4 git commands to generate.