From 07858bca3c40f14fba00a74c1747485e04d0e953 Mon Sep 17 00:00:00 2001 From: Anton Weber Date: Fri, 15 Jun 2012 13:43:00 +0200 Subject: [PATCH] monitor: Fix optstring to parse -b parameter Without the colon getopt ignores the parameter and optarg is always NULL. --- monitor/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3