diff options
author | Allen Winter <allen.winter@kdab.com> | 2019-07-10 16:55:19 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2019-07-10 16:55:19 -0400 |
commit | 0658c25a9e1de73cba40fd02f81d939b492f2c35 (patch) | |
tree | f0fde17f7259c4a30d3441d12bed20b03b55fc90 | |
parent | 9a64ebe4140c8ebe118b28ca8be3ac4c3b5b2fe6 (diff) | |
download | libical-git-0658c25a9e1de73cba40fd02f81d939b492f2c35.tar.gz |
src/libical/icalrecur.c - minor coding style fixes
-rw-r--r-- | src/libical/icalrecur.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/libical/icalrecur.c b/src/libical/icalrecur.c index 77eb3518..eb08105e 100644 --- a/src/libical/icalrecur.c +++ b/src/libical/icalrecur.c @@ -609,15 +609,21 @@ struct icalrecurrencetype icalrecurrencetype_from_string(const char *str) } } else if (strcasecmp(name, "COUNT") == 0) { parser.rt.count = atoi(value); - /* don't allow count to be less than 1 */ - if (parser.rt.count < 1) r = -1; - /* don't allow both count and until */ - else if (!icaltime_is_null_time(parser.rt.until)) r = -1; + if (parser.rt.count < 1) { + /* don't allow count to be less than 1 */ + r = -1; + } else if (!icaltime_is_null_time(parser.rt.until)) { + /* don't allow both count and until */ + r = -1; + } } else if (strcasecmp(name, "UNTIL") == 0) { parser.rt.until = icaltime_from_string(value); - if (icaltime_is_null_time(parser.rt.until)) r = -1; - /* don't allow both count and until */ - else if (parser.rt.count > 0) r = -1; + if (icaltime_is_null_time(parser.rt.until)) { + r = -1; + } else if (parser.rt.count > 0) { + /* don't allow both count and until */ + r = -1; + } } else if (strcasecmp(name, "INTERVAL") == 0) { parser.rt.interval = (short)atoi(value); /* don't allow an interval to be less than 1 |