summaryrefslogtreecommitdiff
path: root/monitor/main.c
diff options
context:
space:
mode:
authorAnton Weber <ant@antweb.me>2012-06-15 13:43:00 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-28 10:36:08 +0300
commit07858bca3c40f14fba00a74c1747485e04d0e953 (patch)
tree3b21ece6a948289b55eff62b0e1bcc604c44f59f /monitor/main.c
parent6da4e6eebfc5e22e7a9df7fda95aa4d793577285 (diff)
downloadbluez-07858bca3c40f14fba00a74c1747485e04d0e953.tar.gz
monitor: Fix optstring to parse -b parameter
Without the colon getopt ignores the parameter and optarg is always NULL.
Diffstat (limited to 'monitor/main.c')
-rw-r--r--monitor/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/main.c b/monitor/main.c
index 90e32c530..0b8ae30a8 100644
--- a/monitor/main.c
+++ b/monitor/main.c
@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "bvh", main_options, NULL);
+ opt = getopt_long(argc, argv, "b:vh", main_options, NULL);
if (opt < 0)
break;