scheduler: fix scrutinizer warnings

This commit is contained in:
David Anderson 2024-12-16 12:16:24 -08:00
parent 14f75463e5
commit 829960bc56
2 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,7 @@ bool JOB::get_score(int array_index) {
return true;
}
bool job_compare(JOB j1, JOB j2) {
bool job_compare(JOB &j1, JOB &j2) {
return (j1.score > j2.score);
}

View File

@ -117,6 +117,7 @@ void get_buda_plan_classes(vector<string> &pcs) {
strip_whitespace(buf);
pcs.push_back(buf);
}
boinc::fclose(f);
}
// scan various DB tables and populate shared-memory arrays