summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
49bac6b)
... by renaming one of the pipe variables.
Change-Id: I550c4c4c8c71171f435bdc1fb6afffdd68d1147b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* 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;