Commit 2d904613 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Clarify assignment.

parent 7f891274
......@@ -166,14 +166,11 @@ int get_timeunit(size_t len, const char *ptu)
static
bool isTimeUnits(const char *timeunits)
{
bool status = false;
if ( strncmp(timeunits, "sec", 3) == 0 ||
strncmp(timeunits, "minute", 6) == 0 ||
strncmp(timeunits, "hour", 4) == 0 ||
strncmp(timeunits, "day", 3) == 0 ||
strncmp(timeunits, "month", 5) == 0 ) status = true;
bool status = strncmp(timeunits, "sec", 3) == 0
|| strncmp(timeunits, "minute", 6) == 0
|| strncmp(timeunits, "hour", 4) == 0
|| strncmp(timeunits, "day", 3) == 0
|| strncmp(timeunits, "month", 5) == 0;
return status;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment