summaryrefslogtreecommitdiffstats
path: root/strtod.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
commit76e6420f6b3503b76bd3eec00ab0e53d6ea17a20 (patch)
tree8b50298f41bd29d55bbd6f4301f36ad31dc0b008 /strtod.c
parent006265d7a088cff4fea665159dbb454956c2cd76 (diff)
downloadsubsurface-76e6420f6b3503b76bd3eec00ab0e53d6ea17a20.tar.gz
Massive automated whitespace cleanup
I know everyone will hate it. Go ahead. Complain. Call me names. At least now things are consistent and reproducible. If you want changes, have your complaint come with a patch to scripts/whitespace.pl so that we can automate it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'strtod.c')
-rw-r--r--strtod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strtod.c b/strtod.c
index 457cbcd9a..81e5d42d1 100644
--- a/strtod.c
+++ b/strtod.c
@@ -47,14 +47,14 @@ double strtod_flags(const char *str, const char **ptr, unsigned int flags)
switch (c) {
case '-':
sign = 1;
- /* fallthrough */
+ /* fallthrough */
case '+':
c = *p++;
}
}
/* Mantissa */
- for (;;c = *p++) {
+ for (;; c = *p++) {
if ((c == '.' && !(flags & STRTOD_NO_DOT)) ||
(c == ',' && !(flags & STRTOD_NO_COMMA))) {
if (dot)
@@ -85,7 +85,7 @@ double strtod_flags(const char *str, const char **ptr, unsigned int flags)
switch (c) {
case '-':
esign = 1;
- /* fallthrough */
+ /* fallthrough */
case '+':
c = *ep++;
}
@@ -118,7 +118,7 @@ done:
if (!numbers)
goto no_conversion;
if (ptr)
- *ptr = p-1;
+ *ptr = p - 1;
return (sign ? -val : val) / decimal;
no_conversion: