Skip to content

Commit

Permalink
Cleanup: src.ctf.lttng-live: coding style
Browse files Browse the repository at this point in the history
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I31d1f0c9503de42be969fb67a294c9cf7548d441
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2266
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
  • Loading branch information
frdeso authored and simark committed Oct 29, 2019
1 parent 152b521 commit 710d900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/ctf/lttng-live/viewer-connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ ssize_t lttng_live_recv(struct live_viewer_connection *viewer_connection,
}
}
} while (ret > 0 && to_copy > 0);
if (ret > 0)

if (ret > 0) {
ret = copied;
}

/* ret = 0 means orderly shutdown, ret == BT_SOCKET_ERROR is error. */
return ret;
}
Expand Down

0 comments on commit 710d900

Please sign in to comment.