]> err.no Git - util-linux/commitdiff
ipcrm: remove redundant message in case of invalid option
authorFrancesco Cosoleto <cosoleto@gmail.com>
Sun, 27 Jun 2010 12:24:34 +0000 (14:24 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Jun 2010 10:51:35 +0000 (12:51 +0200)
This leaves getopt() only to print a similar error message on invalid
options.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
sys-utils/ipcrm.c

index f07eac82657d019192213f9cbc4f5039ba10c638..e8d6ba61f92ae9961616115d5e7a44c830ad04b1 100644 (file)
@@ -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;