Build fix: POD static_assert check fails on lttng_event_exclusions
[lttng-tools.git] / src / common / sessiond-comm / sessiond-comm.hpp
index 31482350e037aa9570490b349c28f8599d99499c..e9cb85a05f6a30715b9928daee2aec537069bea4 100644 (file)
@@ -22,6 +22,7 @@
 #include <lttng/trigger/trigger-internal.hpp>
 #include <lttng/rotate-internal.hpp>
 #include <common/compat/socket.hpp>
+#include <common/compiler.hpp>
 #include <common/uri.hpp>
 #include <common/defaults.hpp>
 #include <common/uuid.hpp>
@@ -563,7 +564,7 @@ struct lttng_bytecode {
 struct lttng_event_exclusion {
        uint32_t count;
        char padding[LTTNG_EVENT_EXCLUSION_PADDING];
-       char names[][LTTNG_SYMBOL_NAME_LEN];
+       char names[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH][LTTNG_SYMBOL_NAME_LEN];
 } LTTNG_PACKED;
 
 #define LTTNG_EVENT_EXCLUSION_NAME_AT(_exclusion, _i) \
@@ -950,8 +951,8 @@ int lttcomm_sock_get_port(const struct lttcomm_sock *sock,
  */
 int lttcomm_sock_set_port(struct lttcomm_sock *sock, uint16_t port);
 
-void lttcomm_init(void);
+void lttcomm_init();
 /* Get network timeout, in milliseconds */
-unsigned long lttcomm_get_network_timeout(void);
+unsigned long lttcomm_get_network_timeout();
 
 #endif /* _LTTNG_SESSIOND_COMM_H */
This page took 0.028374 seconds and 4 git commands to generate.