source.text.dmesg: replace switch to convert status with cast
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 11 Apr 2020 17:16:54 +0000 (13:16 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 11 Apr 2020 23:17:46 +0000 (19:17 -0400)
commit903b999e63e4649c358001400a06ef834734072e
treeecc02b009ee4dc032e0e38fa6eaa33e81e4d3891
parent900eef7317d3e8b350a93fb8782639845c62c2bd
source.text.dmesg: replace switch to convert status with cast

Replace the switch currently used in create_port, to convert the status of
bt_self_component_source_add_output_port, with a simple cast, as per standard
procedure.  Since create_port becomes trivial, remove it and inline the code in dmesg_init.

Change-Id: Iccdf0ba298c73616b7c86b14e5208de4519b77d8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3395
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/text/dmesg/dmesg.c
This page took 0.024114 seconds and 4 git commands to generate.