freefrag: fix up getopt case statement

There is no need to print out a "bad option" message; getopt
does that for us, and in fact will change "c" to "?" so
it's not even useful.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
bitmap-optimize
Eric Sandeen 2011-09-16 15:49:25 -05:00 committed by Theodore Ts'o
parent 6a1dfb3b62
commit 4ebbc0a310
1 changed files with 1 additions and 3 deletions

View File

@ -282,10 +282,8 @@ int main(int argc, char *argv[])
}
chunk_info.chunkbytes *= 1024;
break;
default:
fprintf(stderr, "%s: bad option '%c'\n",
progname, c);
case 'h':
default:
usage(progname);
break;
}