*
*/
-#include <common/dynamic-buffer.h>
-#include <common/error.h>
-#include <common/hashtable/hashtable.h>
-#include <common/hashtable/utils.h>
-#include <common/macros.h>
-#include <common/mi-lttng.h>
-#include <lttng/log-level-rule-internal.h>
+#include <common/dynamic-buffer.hpp>
+#include <common/error.hpp>
+#include <common/hashtable/hashtable.hpp>
+#include <common/hashtable/utils.hpp>
+#include <common/macros.hpp>
+#include <common/mi-lttng.hpp>
+#include <lttng/log-level-rule-internal.hpp>
#include <lttng/log-level-rule.h>
#include <stdbool.h>
#include <stdlib.h>
{
struct lttng_log_level_rule *rule = NULL;
- rule = (lttng_log_level_rule *) zmalloc(sizeof(struct lttng_log_level_rule));
+ rule = zmalloc<lttng_log_level_rule>();
if (!rule) {
goto end;
}
{
struct lttng_log_level_rule *rule = NULL;
- rule = (lttng_log_level_rule *) zmalloc(sizeof(struct lttng_log_level_rule));
+ rule = zmalloc<lttng_log_level_rule>();
if (!rule) {
goto end;
}
LTTNG_ASSERT(source);
- copy = (lttng_log_level_rule *) zmalloc(sizeof(struct lttng_log_level_rule));
+ copy = zmalloc<lttng_log_level_rule>();
if (!copy) {
goto end;
}