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
/
bin
/
lttng-relayd
/
index.cpp
diff --git
a/src/bin/lttng-relayd/index.cpp
b/src/bin/lttng-relayd/index.cpp
index 651b36715c106a9f0a2794ad1572b48a9ba0ffff..e7846a5b9233b9141d6c9ffd48717aa188d93641 100644
(file)
--- a/
src/bin/lttng-relayd/index.cpp
+++ b/
src/bin/lttng-relayd/index.cpp
@@
-34,7
+34,7
@@
static struct relay_index *relay_index_create(struct relay_stream *stream,
DBG2("Creating relay index for stream id %" PRIu64 " and seqnum %" PRIu64,
stream->stream_handle, net_seq_num);
DBG2("Creating relay index for stream id %" PRIu64 " and seqnum %" PRIu64,
stream->stream_handle, net_seq_num);
- index =
(relay_index *) zmalloc(sizeof(*index)
);
+ index =
zmalloc<relay_index>(
);
if (!index) {
PERROR("Relay index zmalloc");
goto end;
if (!index) {
PERROR("Relay index zmalloc");
goto end;
This page took
0.023571 seconds
and
4
git commands to generate.