Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp368152lqo; Fri, 10 May 2024 02:18:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPvfwjKstyJbFF+xVNVDZSwxJctswEW66v3SY2lrUt+WMDHpfln0LonHFzI1xj0S1g1xAk3Hu+myEQJYzrYEnr945dsG3pV8ZzxmrNJQ== X-Google-Smtp-Source: AGHT+IFh629i33ySMyF43lllj3YR22cCxkl0axt75ZDCpUjrFO/zbZAlQcPPbunAUocUXaFcjkW7 X-Received: by 2002:a50:ab05:0:b0:570:5b3d:91f with SMTP id 4fb4d7f45d1cf-5734d5ceb5emr1405118a12.23.1715332717635; Fri, 10 May 2024 02:18:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715332717; cv=pass; d=google.com; s=arc-20160816; b=jIYHLbh41x6ZrDhYuZEhhZqNusbKIXdoYd7YcUfhIU6bNkpgCNG7C+F4qsI0W/9N+p NZAqvFk5sKo7Zmxe2IAvAF74GCSBELnj+lCSq+ogweQzMoVpn8+is0SCMf2L9NSsZj1F 0bi28nC4TLYbJP7wP607NyY3XUL36Je96mEgxso5UyxeQ8YxC8I5wEWQZ+04LvYe7mB4 O5L3EFe9vP3o3EXfN9fOPQO3kIIQ8nYzSTVCa/S43Q+hPl2vtX1SQle3QLgrf8MSmt06 tCACXVfonBPev1IAndbs8dMGqLLFqQ9B4gQZYbjq3YM/ZCFruC8v0qcMrV5JSOW50WUc nj2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from; bh=SG27RoCOGrcm3eLrl6OD1G+5bmVv5kHiINI6+lqNx40=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=QKVIFWCmmtYae6I2qmSV9Bf2cUBQl2uA/lXU4i/oByUT3nq1V+GIdcleRY13kCX2vS alVgVzddjwGUzeso4c0GuAzV2muTj5aHpMpNrwia3+rdIluHepkpl7dwWo8mRAObhQV5 OPP40oe618gCQRRFDtmC6kGApdspMVFnnIl4WlOF5KuGA5L56z0d5J81dRSY42AeGg3C twgHabfRY2aHvfXFfLVA9jpKAkANLfnKYCTbNEEiXK7boO8hcxLi0ZZM4f8KuxG4SfHO OwzeJbM6H8knVHStuIiUnCG57bAY6RCQiKeGpb5W5IaLOYa6byWgksKahIcMIGwTt+Nm JVcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4446-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d5cbbsi1707780a12.307.2024.05.10.02.18.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:18:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hadess.net); spf=pass (google.com: domain of linux-bluetooth+bounces-4446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4446-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 60AB01F21378 for ; Fri, 10 May 2024 09:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 101171649D9; Fri, 10 May 2024 09:18:25 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 587CA1635BF for ; Fri, 10 May 2024 09:18:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332704; cv=none; b=I2QXooSgAYqff5F0arjQNjsunRyw1LHOm8pLDwc3zjXKW3246wzNtYK3A3SFG/WVX05VO72tJDxuIa/z3kXPO1MSvsI/3tBp6aKe5GrLPxK3hhZhqlTWZhLdkkyBM9vQUpjErsAySUcm2Zs6y4bJf9BO/MaJO0b52TnSL9v6L+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332704; c=relaxed/simple; bh=Yh0PDSY9sQwh0O2/JTlu7MTW12Eg3DPcxr2592X6H/M=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EwJ8lwwuHvweiH0uUO+B4DowHW19eW9V5B7HmzO7QsbrfEYRb71K3I/7cWTJIGpP2SarhEF4GM9t+x1hH2R5pi4ZjBHBMXlkv/vaptoGYssa0O7+sImtWIHQ/8xJwhxl3RW6rUZ0hgA7EA6W8EPLrXbL5+DQc1r2ONI9peSESwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net; spf=pass smtp.mailfrom=hadess.net; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hadess.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hadess.net Received: by mail.gandi.net (Postfix) with ESMTPSA id 88A4A1BF204 for ; Fri, 10 May 2024 09:18:15 +0000 (UTC) From: Bastien Nocera 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 Message-ID: <20240510091814.3172988-2-hadess@hadess.net> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240510091814.3172988-1-hadess@hadess.net> References: <20240510091814.3172988-1-hadess@hadess.net> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: 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