projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: replace uses of `int enabled` with boolean flags
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
consumer.hpp
diff --git
a/src/bin/lttng-sessiond/consumer.hpp
b/src/bin/lttng-sessiond/consumer.hpp
index 5d05c1cbf985327ae1dbd77336efe6683c14bf7d..6875360e6089d06b870bae7d7a82f27607257e97 100644
(file)
--- a/
src/bin/lttng-sessiond/consumer.hpp
+++ b/
src/bin/lttng-sessiond/consumer.hpp
@@
-27,8
+27,8
@@
struct ltt_session;
* C++.
*/
static_assert(__cplusplus == 201103L, "");
* C++.
*/
static_assert(__cplusplus == 201103L, "");
-template <typename
T
>
-constexpr
T max_constexpr(T l, T
r)
+template <typename
NumericalType
>
+constexpr
NumericalType max_constexpr(NumericalType l, NumericalType
r)
{
return l > r ? l : r;
}
{
return l > r ? l : r;
}
@@
-147,7
+147,7
@@
struct consumer_output {
struct urcu_ref ref; /* Refcount */
/* If the consumer is enabled meaning that should be used */
struct urcu_ref ref; /* Refcount */
/* If the consumer is enabled meaning that should be used */
-
unsigned int
enabled;
+
bool
enabled;
enum consumer_dst_type type;
/*
enum consumer_dst_type type;
/*
This page took
0.02361 seconds
and
4
git commands to generate.