projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename on-event to event-rule-matches
[lttng-tools.git]
/
tests
/
unit
/
test_utils_compat_poll.c
diff --git
a/tests/unit/test_utils_compat_poll.c
b/tests/unit/test_utils_compat_poll.c
index 436af5f6f24e1c57ef77fbbc973205cb86d9441c..0cb7b23872908e2b0305db0144a26d75f9159464 100644
(file)
--- a/
tests/unit/test_utils_compat_poll.c
+++ b/
tests/unit/test_utils_compat_poll.c
@@
-238,16
+238,18
@@
static int run_active_set_combination(unsigned int fd_count,
/* Write one byte for all active fds that should be active. */
for (i = 0; i < fd_count; i++) {
/* Write one byte for all active fds that should be active. */
for (i = 0; i < fd_count; i++) {
- struct lttng_pipe *pipe;
+ struct lttng_pipe *
borrowed_
pipe;
/* Should this fd be made active? */
if (!(active_fds_mask & (1 << i))) {
continue;
}
/* Should this fd be made active? */
if (!(active_fds_mask & (1 << i))) {
continue;
}
- pipe = lttng_dynamic_pointer_array_get_pointer(&pipes, i);
+ borrowed_pipe = lttng_dynamic_pointer_array_get_pointer(
+ &pipes, i);
- ret = lttng_pipe_write(pipe, &(char) {'a'}, sizeof(char));
+ ret = lttng_pipe_write(
+ borrowed_pipe, &(char){'a'}, sizeof(char));
if (ret != sizeof(char)) {
diag("Failed to write to pipe");
ret = -1;
if (ret != sizeof(char)) {
diag("Failed to write to pipe");
ret = -1;
This page took
0.024246 seconds
and
4
git commands to generate.