summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-04-01 20:03:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-04-01 20:03:44 +0000
commite794711dd5b55404f75fc793b5dfdd928b67e690 (patch)
tree8d6205b781211d74227a794bab57cb5a83e27c3b /hcid
parent0d2ed5bfcb127e68bc695eeeadd8751f7f8a4d7a (diff)
Keep the option for the builtin SDP server even if it is a noop
Diffstat (limited to 'hcid')
-rw-r--r--hcid/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 76db9361..0c9bd7ef 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -770,7 +770,7 @@ int main(int argc, char *argv[])
struct sigaction sa;
GIOChannel *ctl_io, *child_io;
uint16_t mtu = 0;
- int opt, daemonize = 1, debug = 0, experimental = 0;
+ int opt, daemonize = 1, debug = 0, sdp = 1, experimental = 0;
/* Default HCId settings */
memset(&hcid, 0, sizeof(hcid));
@@ -788,7 +788,7 @@ int main(int argc, char *argv[])
init_defaults();
- while ((opt = getopt(argc, argv, "ndm:xf:")) != EOF) {
+ while ((opt = getopt(argc, argv, "ndsm:xf:")) != EOF) {
switch (opt) {
case 'n':
daemonize = 0;
@@ -798,6 +798,10 @@ int main(int argc, char *argv[])
debug = 1;
break;
+ case 's':
+ sdp = 1;
+ break;
+
case 'm':
mtu = atoi(optarg);
break;