Fix more clang-tidy warnings
This commit is contained in:
parent
5747a65664
commit
c7cafa94c4
21 changed files with 178 additions and 208 deletions
src/models
|
@ -27,9 +27,8 @@ period_helper_parse_hhmm(const char *hhmm_str, uint16_t *hhmm)
|
|||
}
|
||||
}
|
||||
|
||||
uint16_t tmp_h, tmp_m;
|
||||
tmp_h = (uint16_t)strtol(&hhmm_str[0], NULL, 10);
|
||||
tmp_m = (uint16_t)strtol(&hhmm_str[3], NULL, 10);
|
||||
uint16_t tmp_h = (uint16_t)strtol(&hhmm_str[0], NULL, 10);
|
||||
uint16_t tmp_m = (uint16_t)strtol(&hhmm_str[3], NULL, 10);
|
||||
|
||||
if(tmp_h > 24 || tmp_m >= 60)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue