From: Francesco Cosoleto Date: Sun, 27 Jun 2010 12:24:34 +0000 (+0200) Subject: ipcrm: remove redundant message in case of invalid option X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e1424225df2a33705bc60d306f9ab53f2b3d09;p=util-linux 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 --- 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;