From e9e1e2d18ae6238ce9e4cd6c595da70e6646954e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 21 Apr 2019 19:12:29 +0200 Subject: [PATCH] gluon-neighbour-info: exit on unknown parameters --- package/gluon-neighbour-info/src/gluon-neighbour-info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gluon-neighbour-info/src/gluon-neighbour-info.c b/package/gluon-neighbour-info/src/gluon-neighbour-info.c index faa9159e..d0df56ab 100644 --- a/package/gluon-neighbour-info/src/gluon-neighbour-info.c +++ b/package/gluon-neighbour-info/src/gluon-neighbour-info.c @@ -201,7 +201,8 @@ int main(int argc, char **argv) { exit(EXIT_SUCCESS); break; default: - fprintf(stderr, "Invalid parameter %c ignored.\n", c); + fprintf(stderr, "Invalid parameter %c\n", optopt); + exit(EXIT_FAILURE); } if (request_string == NULL) {