aboutsummaryrefslogtreecommitdiffstats
path: root/src/convenience/convenience.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/convenience/convenience.c')
-rw-r--r--src/convenience/convenience.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/convenience/convenience.c b/src/convenience/convenience.c
index 517dc4e..00cc2cc 100644
--- a/src/convenience/convenience.c
+++ b/src/convenience/convenience.c
@@ -49,9 +49,11 @@ double atofs(char *s)
case 'g':
case 'G':
suff *= 1e3;
+ /* fall-through */
case 'm':
case 'M':
suff *= 1e3;
+ /* fall-through */
case 'k':
case 'K':
suff *= 1e3;
@@ -76,9 +78,11 @@ double atoft(char *s)
case 'h':
case 'H':
suff *= 60;
+ /* fall-through */
case 'm':
case 'M':
suff *= 60;
+ /* fall-through */
case 's':
case 'S':
suff *= atof(s);