This leaves getopt() only to print a similar error message on invalid options. Signed-off-by: Francesco Cosoleto <cosoleto@xxxxxxxxx> --- disk-utils/elvtune.c | 3 --- disk-utils/isosize.c | 2 -- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/disk-utils/elvtune.c b/disk-utils/elvtune.c index b5bb378..1cf2fa8 100644 --- a/disk-utils/elvtune.c +++ b/disk-utils/elvtune.c @@ -98,10 +98,7 @@ main(int argc, char * argv[]) { case 'v': version(), exit(0); - case '?': default: - case ':': - fprintf(stderr, _("parse error\n")); exit(1); } } diff --git a/disk-utils/isosize.c b/disk-utils/isosize.c index 3f22ab8..5f0358e 100644 --- a/disk-utils/isosize.c +++ b/disk-utils/isosize.c @@ -196,8 +196,6 @@ main(int argc, char * argv[]) { xflag = 1; break; default: - fprintf(stderr, - _("%s: option parse error\n"), progname); exit(1); } } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html