Linux-Bluetooth Archive mirror
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: linux-bluetooth@vger.kernel.org
Subject: [BlueZ 01/14] adapter: Use false instead of 0 for bool
Date: Fri, 10 May 2024 11:10:59 +0200	[thread overview]
Message-ID: <20240510091814.3172988-2-hadess@hadess.net> (raw)
In-Reply-To: <20240510091814.3172988-1-hadess@hadess.net>

---
 src/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/adapter.c b/src/adapter.c
index 5505edbb29c1..8b478e213cb5 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2413,7 +2413,7 @@ static int update_discovery_filter(struct btd_adapter *adapter)
 	 * starting discovery.
 	 */
 	if (filters_equal(adapter->current_discovery_filter, sd_cp) &&
-	    adapter->discovering != 0) {
+	    adapter->discovering != false) {
 		DBG("filters were equal, deciding to not restart the scan.");
 		g_free(sd_cp);
 		return 0;
-- 
2.44.0


  reply	other threads:[~2024-05-10  9:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10  9:10 [BlueZ 00/14] Fix a number of static analysis issues Bastien Nocera
2024-05-10  9:10 ` Bastien Nocera [this message]
2024-05-10 11:47   ` bluez.test.bot
2024-05-10 11:49     ` Bastien Nocera
2024-05-10  9:11 ` [BlueZ 02/14] attrib/gatt: Guard against possible integer overflow Bastien Nocera
2024-05-10  9:11 ` [BlueZ 03/14] client/gatt: Don't pass negative fd on error Bastien Nocera
2024-05-10  9:11 ` [BlueZ 04/14] client/gatt: Check write_value() retval Bastien Nocera
2024-05-10  9:11 ` [BlueZ 05/14] client/main: Fix array access Bastien Nocera
2024-05-10  9:11 ` [BlueZ 06/14] client/main: Fix mismatched free Bastien Nocera
2024-05-10  9:11 ` [BlueZ 07/14] monitor/att: Fix memory leak Bastien Nocera
2024-05-10  9:11 ` [BlueZ 08/14] bap: Fix memory leaks Bastien Nocera
2024-05-10  9:11 ` [BlueZ 09/14] media: Fix memory leak Bastien Nocera
2024-05-10  9:11 ` [BlueZ 10/14] main: Fix memory leaks Bastien Nocera
2024-05-10  9:11 ` [BlueZ 11/14] isotest: Consider "0" fd to be valid Bastien Nocera
2024-05-10  9:11 ` [BlueZ 12/14] isotest: Fix error check after opening file Bastien Nocera
2024-05-10  9:11 ` [BlueZ 13/14] client/player: Fix copy/paste error Bastien Nocera
2024-05-10  9:11 ` [BlueZ 14/14] shared/vcp: " Bastien Nocera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240510091814.3172988-2-hadess@hadess.net \
    --to=hadess@hadess.net \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).