Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp336827pxu; Tue, 6 Oct 2020 07:35:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyYCKCLzbkll6JVze4/VfYdh6ET58GESAs1NoVyyTBC6O0ClWnc+sYDRNXIxtUkYMLFbDG X-Received: by 2002:a50:d517:: with SMTP id u23mr5837189edi.338.1601994942401; Tue, 06 Oct 2020 07:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601994942; cv=none; d=google.com; s=arc-20160816; b=RzBwlDKy5gJQqH7g4oJx/EfA0gxJhlf4Vp9U0j8RIKP3gotLk3O3tcXCA1QCXwmLS5 kbD/WK7KnwEasDRLcdkiSI2DiI5WW2e2KuUwWUG8HgDXrWHu5xqAIzClY7+Nk2NLyVYs QtkYPhiGJ+ch0ujzpxXzLm5wsJKrYcsT3QDrqEZW7KBsi1UpdfCJZBYsNxm2eoV50nk9 ti6G5tGEOKugPGFZXxbFhriSASWIcGpyHT21YDb5mN/MWMyr8cxrXGkY/+ZAkXMPbvyO 47imVzlmF8suSmSGW4FEx9EJfRQlj5Sih4w6IiNPpA+siaYPu3qMQa0gVtsAIe30mZZn g/sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=r3iwX3l2VivD81ERmRAV4CarF37vHS5r47MdNOdSuCE=; b=Q86RTPF+65xulvy7tLg3qcl0Cg6/BQ65pZcNhRF6sLLPu6goMM1IRQbZm6hrMx3PX0 qYlr1XDzkx9dYNPvVkfdocP9st7de9wUyMAoVrnWDo6QB2RfEHhJuq7Hst0gbr+cCHN+ BlHXyiUnVjyLVRe8GTBIwHr+x0sh6dyKFZ+LVd3jHGb5GW7SGNtqLfN7qTaE7qBuxcYA Y3n/nxYoN50fgVvO3DagtSvCTtX5B2EAjuTJuCql81kGFuzFFBDXiOG2fsiWmHWE5MFt R0i+adHYzPS+oP7I5LaalH6wSazLJ0XpolGK1H+Mfv1G5A7HLPk0uaSZtOnkVRR+5x6M mfXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@grimler.se header.s=default header.b=geb6CJRK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si2138085ejd.570.2020.10.06.07.34.57; Tue, 06 Oct 2020 07:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@grimler.se header.s=default header.b=geb6CJRK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725981AbgJFOeu (ORCPT + 99 others); Tue, 6 Oct 2020 10:34:50 -0400 Received: from h01mx15.reliablemail.org ([173.236.5.211]:16650 "EHLO h01mx15.reliablemail.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgJFOeu (ORCPT ); Tue, 6 Oct 2020 10:34:50 -0400 X-Greylist: delayed 360 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Oct 2020 10:34:49 EDT X-Halon-Out: 3e6bd01e-07e0-11eb-b845-00163c81f1a9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=grimler.se; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=r3iwX3l2VivD81ERmRAV4CarF37vHS5r47MdNOdSuCE=; b=geb6CJRKB+z7GjxyBEvON6Q3Qm DNmqhEDRa7THs2QAp+ZEAueqe/LgSG+X8bCqM+AlRh17NRlQSqscrCcElmTYOC4AzV6R/1Kldihle ky7fe2sDnIp7vblpb3GSL80Rz9xUpkFvdoVsjOM4CD0X8xzr2jQfFHyukb204DD1CRAYIHP/7Ujhu ua4mojH158ZnE4llKR9fL1lidwEDtFhUAzOKmhd+PIYYiB2gMJ0gp+oLm/xa4+09lllubbbxUGHaC raK9OIl3H57dBcIbXmUop/Ir1Pr3pzhjaCr72HCe7Ay5hb302gUJ9bwSUz19WFoiRm+aHLSxpUcLr t6sKXtpQ==; From: Henrik Grimler To: linux-bluetooth@vger.kernel.org Cc: Henrik Grimler Subject: [PATCH BlueZ 1/1] tools: fix forgotten index->mgmt_index renaming in btmgmt.c Date: Tue, 6 Oct 2020 16:28:36 +0200 Message-Id: <20201006142836.123490-1-henrik@grimler.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpsrv07.misshosting.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - grimler.se X-Get-Message-Sender-Via: cpsrv07.misshosting.com: authenticated_id: henrik@grimler.se X-Authenticated-Sender: cpsrv07.misshosting.com: henrik@grimler.se X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Commit 6523d168a7c1bdb886fbf42e8a810ed15e5ec0e2 renamed the variable index to mgmt_index but missed it in one place. When trying to compile bluez I get: ``` /data/data/com.termux/files/home/.termux-build/libbluetooth/src/tools/btmgmt.c:1229:34: warning: implicitly declaring library function 'index' with type 'char *(const char *, int)' [-Wimplicit-function-declaration] config_info_rsp, UINT_TO_PTR(index), NULL)) { ^ /data/data/com.termux/files/home/.termux-build/libbluetooth/src/tools/btmgmt.c:1229:34: note: include the header or explicitly provide a declaration for 'index' [...] /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: tools/btmgmt.o: in function `cmd_config': btmgmt.c:(.text+0x544): undefined reference to `index' /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: btmgmt.c:(.text+0x548): undefined reference to `index' ``` This seem to only happens on system (like android) where the obsolete index function is not defined. --- tools/btmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index b0b837d34..228f94efa 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -1213,7 +1213,7 @@ static void cmd_config(int argc, char **argv) } if (!mgmt_send(mgmt, MGMT_OP_READ_CONFIG_INFO, mgmt_index, 0, NULL, - config_info_rsp, UINT_TO_PTR(index), NULL)) { + config_info_rsp, UINT_TO_PTR(mgmt_index), NULL)) { error("Unable to send read_config_info cmd"); return bt_shell_noninteractive_quit(EXIT_FAILURE); } -- 2.28.0