Skip to content

Commit

Permalink
Some clang-tidy errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tokox committed Jan 17, 2024
1 parent 0bd14e6 commit c59c4e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions howdy/src/pam/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ auto check_enabled(const INIReader &config, const char* username) -> int {
syslog(LOG_ERR, "Error parsing 'dark_hours' from config: incorrect value");
return PAM_SYSTEM_ERR;
}
int dark_start = std::stoi(dark_hours_match[1].str())*60+std::stoi(dark_hours_match[2].str()),
dark_end = std::stoi(dark_hours_match[3].str())*60+std::stoi(dark_hours_match[4].str());
int dark_start = std::stoi(dark_hours_match[1].str())*60+std::stoi(dark_hours_match[2].str());
int dark_end = std::stoi(dark_hours_match[3].str())*60+std::stoi(dark_hours_match[4].str());

// Get local hour and minute
time_t timenowseconds = time(nullptr);
Expand Down

0 comments on commit c59c4e7

Please sign in to comment.