projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: ODR violation results in memory corruption
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
add_context.cpp
diff --git
a/src/bin/lttng/commands/add_context.cpp
b/src/bin/lttng/commands/add_context.cpp
index b25d2d10a3aced9b771a8094bac5e12cf3bee335..5db0c5664888193d1b943558faf2ae4d3556a4aa 100644
(file)
--- a/
src/bin/lttng/commands/add_context.cpp
+++ b/
src/bin/lttng/commands/add_context.cpp
@@
-217,7
+217,7
@@
static struct poptOption long_options[] = {
_PERF_HW_CACHE(optstr "-prefetch-misses", name, type, \
PREFETCH, MISS, hide)
_PERF_HW_CACHE(optstr "-prefetch-misses", name, type, \
PREFETCH, MISS, hide)
-static
+namespace {
const struct ctx_opts {
/* Needed for end-of-list item. */
ctx_opts()
const struct ctx_opts {
/* Needed for end-of-list item. */
ctx_opts()
@@
-552,8
+552,7
@@
struct ctx_type_list {
} ctx_type_list = {
.head = CDS_LIST_HEAD_INIT(ctx_type_list.head),
};
} ctx_type_list = {
.head = CDS_LIST_HEAD_INIT(ctx_type_list.head),
};
-
-
+} /* namespace */
/*
* Find context numerical value from string.
/*
* Find context numerical value from string.
This page took
0.023909 seconds
and
4
git commands to generate.