Cleanup: flt.utils.muxer: avoid returning a pointer needlessly
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 15 May 2019 22:08:18 +0000 (18:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 21 May 2019 20:14:04 +0000 (16:14 -0400)
commitae644e59d03d1ea0fe0c64e10bc6e44d14b2c787
tree9a91b8c9335eab5824a7670a52c16dc3ba87f98b
parent11603bce22e463c3b53084975b73dd28578c1a50
Cleanup: flt.utils.muxer: avoid returning a pointer needlessly

Reshuffle `muxer_msg_iter_add_upstream_msg_iter()` function to return an
int rather than a pointer.

Returning a pointer in this case has no value since the newly allocated
structure is stored in a GQueue directly. Returning an int to express
success or error seems more appropriate and less error-prone.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I111cd06e1f667c98aa3bf650375c6e49fcd4c5dd
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1313
Tested-by: jenkins
Reviewed-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/utils/muxer/muxer.c
This page took 0.025801 seconds and 4 git commands to generate.