summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-11-06 17:15:54 -0600
committerChris Mason <chris.mason@fusionio.com>2013-11-07 16:10:41 -0500
commit7bee7b2f2a16b5af04bd4b3f967eefe81cedbac1 (patch)
tree8e939684297b484e403173f60df7f4c81ab017cd /utils.c
parentb68477aee114470bde87d655ef647f8475b18003 (diff)
btrfs-progs: annotate fallthroughs in parse_size
We intentionally fall through these case statements; just annotate it to be clear. Resolves-Coverity-CID: 1054887 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 704b371e..f4990231 100644
--- a/utils.c
+++ b/utils.c
@@ -1522,16 +1522,22 @@ u64 parse_size(char *s)
switch (c) {
case 'e':
mult *= 1024;
+ /* fallthrough */
case 'p':
mult *= 1024;
+ /* fallthrough */
case 't':
mult *= 1024;
+ /* fallthrough */
case 'g':
mult *= 1024;
+ /* fallthrough */
case 'm':
mult *= 1024;
+ /* fallthrough */
case 'k':
mult *= 1024;
+ /* fallthrough */
case 'b':
break;
default: