projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
bytecode
/
bytecode.cpp
diff --git
a/src/common/bytecode/bytecode.cpp
b/src/common/bytecode/bytecode.cpp
index 064f2bfe203d92c8e1b0c14f1e1fa5282f8f69c8..c32f3900b8d4332d32e0a9eb5b771dc40b82fe85 100644
(file)
--- a/
src/common/bytecode/bytecode.cpp
+++ b/
src/common/bytecode/bytecode.cpp
@@
-1,16
+1,16
@@
/*
* Copyright 2020 EfficiOS, Inc.
*
/*
* Copyright 2020 EfficiOS, Inc.
*
- * SPDX-License-Identifier:
GPL-2.0
-only
+ * SPDX-License-Identifier:
LGPL-2.1
-only
*
*/
*
*/
-#include "bytecode.h"
+#include "bytecode.h
pp
"
#include <errno.h>
#include <algorithm>
#include <errno.h>
#include <algorithm>
-#include "common/align.h"
+#include "common/align.h
pp
"
#define INIT_ALLOC_SIZE 4
#define INIT_ALLOC_SIZE 4
@@
-251,9
+251,8
@@
end:
struct lttng_bytecode *lttng_bytecode_copy(
const struct lttng_bytecode *orig_f)
{
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;
}
if (!bytecode) {
goto error;
}
This page took
0.025566 seconds
and
4
git commands to generate.