diff options
author | Ondrej Oprala | 2013-09-23 15:39:24 +0200 |
---|---|---|
committer | Karel Zak | 2013-11-08 12:54:53 +0100 |
commit | 961b4cd6427d749207e037898ac4a6affa7767c8 (patch) | |
tree | 2dfa408d72e067c80e5a02d965acd8080275d729 /text-utils/parse.c | |
parent | hexdump: use xstrncpy in add() (diff) | |
download | kernel-qcow2-util-linux-961b4cd6427d749207e037898ac4a6affa7767c8.tar.gz kernel-qcow2-util-linux-961b4cd6427d749207e037898ac4a6affa7767c8.tar.xz kernel-qcow2-util-linux-961b4cd6427d749207e037898ac4a6affa7767c8.zip |
hexdump: use GNU case ranges where possible
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'text-utils/parse.c')
-rw-r--r-- | text-utils/parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/text-utils/parse.c b/text-utils/parse.c index 24a8407af..c5253c3d9 100644 --- a/text-utils/parse.c +++ b/text-utils/parse.c @@ -197,7 +197,9 @@ int block_size(FS *fs) case 'x': case 'X': bcnt += 4; break; - case 'e': case 'E': case 'f': case 'g': case 'G': + case 'e' ... 'g': + case 'E': + case 'G': bcnt += 8; break; case 's': @@ -323,10 +325,8 @@ void rewrite(FS *fs) badcnt(p1); } break; - case 'e': + case 'e' ... 'g': case 'E': - case 'f': - case 'g': case 'G': pr->flags = F_DBL; switch(fu->bcnt) { |