diff options
author | Eric Sandeen <sandeen@redhat.com> | 2011-09-16 15:49:25 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-16 18:43:05 -0400 |
commit | 4ebbc0a310b8c2dc239a6b4a99e65331872dcf9a (patch) | |
tree | ff87eb9aa4ca4d3d9bbda8b8252cbede92c00c02 | |
parent | 6a1dfb3b62eda5e7eb671b9c879546addb616684 (diff) | |
download | e2fsprogs-4ebbc0a310b8c2dc239a6b4a99e65331872dcf9a.tar.gz |
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>
-rw-r--r-- | misc/e2freefrag.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c index e6fd67eb..419c6fc2 100644 --- a/misc/e2freefrag.c +++ b/misc/e2freefrag.c @@ -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; } |