Fix: agent port file is o+w when launching as root
[lttng-tools.git] / src / common / snapshot.cpp
index 5145dd120707dadee4b8e6c26c8e8d79dc7bf8d7..191f484c255b0d5a9669737b07e6fff8b3c535cb 100644 (file)
@@ -5,12 +5,12 @@
  *
  */
 
-#include <common/error.h>
-#include <common/mi-lttng.h>
-#include <common/payload-view.h>
-#include <common/payload.h>
-#include <common/snapshot.h>
-#include <lttng/snapshot-internal.h>
+#include <common/error.hpp>
+#include <common/mi-lttng.hpp>
+#include <common/payload-view.hpp>
+#include <common/payload.hpp>
+#include <common/snapshot.hpp>
+#include <lttng/snapshot-internal.hpp>
 #include <lttng/snapshot.h>
 
 #include <stdlib.h>
@@ -77,6 +77,7 @@ end:
        return equal;
 }
 
+namespace {
 /*
  * This is essentially the same as `struct lttng_snapshot_output`, but packed.
  */
@@ -87,6 +88,7 @@ struct lttng_snapshot_output_comm {
        char ctrl_url[PATH_MAX];
        char data_url[PATH_MAX];
 } LTTNG_PACKED;
+} /* namespace */
 
 int lttng_snapshot_output_serialize(
                const struct lttng_snapshot_output *output,
This page took 0.023163 seconds and 4 git commands to generate.