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: Remove remaining max_t macros
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-metadata.cpp
diff --git
a/src/bin/lttng-sessiond/ust-metadata.cpp
b/src/bin/lttng-sessiond/ust-metadata.cpp
index f5c5e7a2136c9cb2a533e4f90a6f1cfa08aef811..b507f7870e687841abe139c17b1a805b42c97612 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-metadata.cpp
+++ b/
src/bin/lttng-sessiond/ust-metadata.cpp
@@
-20,10
+20,6
@@
#include "ust-clock.hpp"
#include "ust-app.hpp"
#include "ust-clock.hpp"
#include "ust-app.hpp"
-#ifndef max_t
-#define max_t(type, a, b) ((type) ((a) > (b) ? (a) : (b)))
-#endif
-
#define NR_CLOCK_OFFSET_SAMPLES 10
struct offset_sample {
#define NR_CLOCK_OFFSET_SAMPLES 10
struct offset_sample {
@@
-69,7
+65,7
@@
ssize_t metadata_reserve(struct ust_registry_session *session, size_t len)
char *newptr;
new_alloc_len =
char *newptr;
new_alloc_len =
-
max_t(size_t,
1U << get_count_order(new_alloc_len), old_alloc_len << 1);
+
std::max<size_t>(
1U << get_count_order(new_alloc_len), old_alloc_len << 1);
newptr = (char *) realloc(session->metadata, new_alloc_len);
if (!newptr)
return -ENOMEM;
newptr = (char *) realloc(session->metadata, new_alloc_len);
if (!newptr)
return -ENOMEM;
This page took
0.022295 seconds
and
4
git commands to generate.