From 252816f757883fa958c319f0acad9583553a9f0a Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Tue, 6 Jul 2021 00:05:05 +0300 Subject: [PATCH] bluez5: fix wrongly typed `started` field in spa_bt_sco_io This is a bitfield, but it's unclear what it achieves since this is the only member of a bitfield, so it may be more efficient to just make it a bool. Fixes a LGTM warning: Bit field started of type int should have explicitly unsigned integral, explicitly signed integral, or enumeration type. --- spa/plugins/bluez5/sco-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/sco-io.c b/spa/plugins/bluez5/sco-io.c index 294b0cb0e..ece0e9d67 100644 --- a/spa/plugins/bluez5/sco-io.c +++ b/spa/plugins/bluez5/sco-io.c @@ -69,7 +69,7 @@ struct spa_bt_sco_io { - int started:1; + bool started; uint8_t read_buffer[MAX_MTU]; uint32_t read_size;