/*
* Copyright 2020 EfficiOS, Inc.
*
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: LGPL-2.1-only
*
*/
-#include "bytecode.h"
+#include "bytecode.hpp"
#include <errno.h>
#include <algorithm>
-#include "common/align.h"
+#include "common/align.hpp"
#define INIT_ALLOC_SIZE 4
struct lttng_bytecode *lttng_bytecode_copy(
const struct lttng_bytecode *orig_f)
{
- struct lttng_bytecode *bytecode = NULL;
-
- bytecode = (lttng_bytecode *) zmalloc(sizeof(*bytecode) + orig_f->len);
+ lttng_bytecode *bytecode
+ = zmalloc<lttng_bytecode>(sizeof(*bytecode) + orig_f->len);
if (!bytecode) {
goto error;
}