|
@@ -1190,8 +1190,6 @@ config_parse_msec_interval(const char *s, int *ok)
|
|
|
{
|
|
|
uint64_t r;
|
|
|
r = config_parse_units(s, time_msec_units, ok);
|
|
|
- if (!ok)
|
|
|
- return -1;
|
|
|
if (r > INT_MAX) {
|
|
|
log_warn(LD_CONFIG, "Msec interval '%s' is too long", s);
|
|
|
*ok = 0;
|
|
@@ -1209,8 +1207,6 @@ config_parse_interval(const char *s, int *ok)
|
|
|
{
|
|
|
uint64_t r;
|
|
|
r = config_parse_units(s, time_units, ok);
|
|
|
- if (!ok)
|
|
|
- return -1;
|
|
|
if (r > INT_MAX) {
|
|
|
log_warn(LD_CONFIG, "Interval '%s' is too long", s);
|
|
|
*ok = 0;
|