aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/toml.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common/toml.c')
-rw-r--r--utils/common/toml.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/common/toml.c b/utils/common/toml.c
index 2a9f3dac..68cebef9 100644
--- a/utils/common/toml.c
+++ b/utils/common/toml.c
@@ -1697,7 +1697,8 @@ int toml_rtots(const char* src_, toml_timestamp_t* ret)
for (i = 0; i < 10; i++, p++) {
int xx = *p;
if (xx == '-') {
- if (i == 4 || i == 7) continue; else return -1;
+ if (i == 4 || i == 7) continue;
+ return -1;
}
if (! ('0' <= xx && xx <= '9')) return -1;
val = val * 10 + (xx - '0');
@@ -1724,7 +1725,8 @@ int toml_rtots(const char* src_, toml_timestamp_t* ret)
for (i = 0; i < 8; i++, p++) {
int xx = *p;
if (xx == ':') {
- if (i == 2 || i == 5) continue; else return -1;
+ if (i == 2 || i == 5) continue;
+ return -1;
}
if (! ('0' <= xx && xx <= '9')) return -1;
val = val * 10 + (xx - '0');

Privacy Policy