From 1b876422a5d3464c3a7ddad14956542adb2c1e53 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 18 Nov 2004 08:26:06 +0000 Subject: Use --device for selecting the source device --- dund/dund.1 | 2 +- dund/main.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dund/dund.1 b/dund/dund.1 index 3ac0f03d..7b4e7cd9 100644 --- a/dund/dund.1 +++ b/dund/dund.1 @@ -29,7 +29,7 @@ Kill all DUN connections \fB\-\-channel\fR \fB\-C\fR RFCOMM channel .TP -\fB\-\-source\fR \fB\-S\fR +\fB\-\-device\fR \fB\-i\fR Source bdaddr .TP \fB\-\-nosdp\fR \fB\-D\fR diff --git a/dund/main.c b/dund/main.c index 51ad1db3..b7d2b356 100644 --- a/dund/main.c +++ b/dund/main.c @@ -45,9 +45,9 @@ #include #include -#include #include #include +#include #include "dund.h" #include "lib.h" @@ -369,7 +369,7 @@ static struct option main_lopts[] = { { "kill", 1, 0, 'k' }, { "killall", 0, 0, 'K' }, { "channel", 1, 0, 'P' }, - { "source", 1, 0, 'S' }, + { "device", 1, 0, 'i' }, { "nosdp", 0, 0, 'D' }, { "list", 0, 0, 'l' }, { "show", 0, 0, 'l' }, @@ -384,7 +384,7 @@ static struct option main_lopts[] = { { 0, 0, 0, 0 } }; -static char main_sopts[] = "hsc:k:Kr:S:lnp::DQ::EMP:C::P:X"; +static char main_sopts[] = "hsc:k:Kr:i:lnp::DQ::EMP:C::P:X"; static char main_help[] = "Bluetooth LAP (LAN Access over PPP) daemon version " VERSION " \n" @@ -399,7 +399,7 @@ static char main_help[] = "\t--kill -k Kill LAP connection\n" "\t--killall -K Kill all LAP connections\n" "\t--channel -P RFCOMM channel\n" - "\t--source -S Source bdaddr\n" + "\t--device -i Source bdaddr\n" "\t--nosdp -D Disable SDP\n" "\t--nodetach -n Do not become a daemon\n" "\t--persist -p[interval] Persist mode\n" @@ -453,7 +453,7 @@ int main(int argc, char **argv) channel = atoi(optarg); break; - case 'S': + case 'i': src = strdup(optarg); break; -- cgit