Linux bluetooth development
 help / color / mirror / Atom feed
From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 2/2] android/client: Fix argument count in create_bond()
Date: Mon, 10 Nov 2014 11:04:48 +0200	[thread overview]
Message-ID: <1415610288-2035-2-git-send-email-Andrei.Emeltchenko.news@gmail.com> (raw)
In-Reply-To: <1415610288-2035-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

---
 android/client/if-bt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 48aff1b..7325242 100644
--- a/android/client/if-bt.c
+++ b/android/client/if-bt.c
@@ -628,7 +628,7 @@ static void create_bond_p(int argc, const char **argv)
 	VERIFY_ADDR_ARG(2, &addr);
 
 #if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
-	if (argc < 3)
+	if (argc < 4)
 		transport = BT_TRANSPORT_UNKNOWN;
 	else
 		transport = atoi(argv[3]);
-- 
1.9.1


  reply	other threads:[~2014-11-10  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-10  9:04 [PATCH 1/2] android/tester: initialize unused callback to NULL Andrei Emeltchenko
2014-11-10  9:04 ` Andrei Emeltchenko [this message]
2014-11-10 19:49 ` Szymon Janc

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=1415610288-2035-2-git-send-email-Andrei.Emeltchenko.news@gmail.com \
    --to=andrei.emeltchenko.news@gmail.com \
    --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