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 19:39:26 +0000 (15:39 -0400)
commitc61018b99a23cc27bdef92fe2b8a363ff85e311a
tree27bdc34bef3da93a918e3dc23e0b191562d3263a
parent6c20f4a0c496cfac67ceabe876edc796929ffb64
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.024636 seconds and 4 git commands to generate.