From: Filippo Giunchedi <filippo@esaurito.net>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 2/5] test/agent.c: rename option device into adapter
Date: Thu, 2 Jul 2009 11:14:25 +0200 [thread overview]
Message-ID: <1246526068-13364-2-git-send-email-filippo@esaurito.net> (raw)
In-Reply-To: <1246526068-13364-1-git-send-email-filippo@esaurito.net>
---
test/agent.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/agent.c b/test/agent.c
index 64362e8..b9485d2 100644
--- a/test/agent.c
+++ b/test/agent.c
@@ -468,12 +468,12 @@ static void usage(void)
printf("Bluetooth agent ver %s\n\n", VERSION);
printf("Usage:\n"
- "\tagent [--device interface] [--path agent-path] <passkey> [<target_device>]\n"
+ "\tagent [--adapter adapter-path] [--path agent-path] <passkey> [<target_device>]\n"
"\n");
}
static struct option main_options[] = {
- { "device", 1, 0, 'i' },
+ { "adapter", 1, 0, 'a' },
{ "path", 1, 0, 'p' },
{ "capabilites",1, 0, 'c' },
{ "reject", 0, 0, 'r' },
@@ -493,9 +493,9 @@ int main(int argc, char *argv[])
snprintf(default_path, sizeof(default_path),
"/org/bluez/agent_%d", getpid());
- while ((opt = getopt_long(argc, argv, "+i:p:c:rh", main_options, NULL)) != EOF) {
+ while ((opt = getopt_long(argc, argv, "+a:p:c:rh", main_options, NULL)) != EOF) {
switch(opt) {
- case 'i':
+ case 'a':
adapter_id = optarg;
break;
case 'p':
--
1.6.3.3
next prev parent reply other threads:[~2009-07-02 9:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 9:14 [PATCH 1/5] test/agent.c: rename device into adapter in main Filippo Giunchedi
2009-07-02 9:14 ` Filippo Giunchedi [this message]
2009-07-02 9:14 ` [PATCH 3/5] test/agent.c: rename device into adapter in functions Filippo Giunchedi
2009-07-02 9:14 ` [PATCH 4/5] test/agent.c: find given adapter or use default Filippo Giunchedi
2009-07-02 9:14 ` [PATCH 5/5] test/agent.c: rename "target device" into device Filippo Giunchedi
2009-07-02 14:24 ` [PATCH 1/5] test/agent.c: rename device into adapter in main Johan Hedberg
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=1246526068-13364-2-git-send-email-filippo@esaurito.net \
--to=filippo@esaurito.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