From 51e1424225df2a33705bc60d306f9ab53f2b3d09 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Sun, 27 Jun 2010 14:24:34 +0200 Subject: [PATCH] ipcrm: remove redundant message in case of invalid option This leaves getopt() only to print a similar error message on invalid options. Signed-off-by: Francesco Cosoleto --- sys-utils/ipcrm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index f07eac82..e8d6ba61 100644 --- a/sys-utils/ipcrm.c +++ b/sys-utils/ipcrm.c @@ -176,8 +176,6 @@ int main(int argc, char **argv) /* make sure the option is in range */ if (c != 'q' && c != 'm' && c != 's') { - fprintf(stderr, _("%s: illegal option -- %c\n"), - prog, c); usage(prog); error++; return error; -- 2.39.5