Module: xenomai-forge Branch: next Commit: 614b783d5c8ee2792d75c5657c3461679db1ef1b URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=614b783d5c8ee2792d75c5657c3461679db1ef1b
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Aug 31 09:24:13 2014 +0200 copperplate/init: hand over unknown command line options to application --- lib/copperplate/init.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/copperplate/init.c b/lib/copperplate/init.c index 1a3c2f3..adf2c48 100644 --- a/lib/copperplate/init.c +++ b/lib/copperplate/init.c @@ -364,10 +364,9 @@ static int parse_base_options(int *argcp, char *const **argvp, c = getopt_long(*largcp, uargv, "", options, &lindex); if (c == EOF) break; - if (lindex == -1) { - usage(); - exit(1); - } + if (lindex == -1) + continue; + switch (lindex - base_opt_start) { case mempool_opt: __node_info.mem_pool = atoi(optarg) * 1024; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git