mirror of
https://github.com/transmission/transmission.git
synced 2026-04-23 18:29:54 +01:00
refactor: remove tr_sys_file_flush() (#6647)
This commit is contained in:
@@ -55,12 +55,12 @@ int main(int argc, char** argv)
|
||||
}
|
||||
else
|
||||
{
|
||||
std::fclose(out);
|
||||
std::remove(tmp_result_path.c_str());
|
||||
(void)std::fclose(out);
|
||||
(void)std::remove(tmp_result_path.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::fclose(out);
|
||||
(void)std::fclose(out);
|
||||
tr_sys_path_rename(tmp_result_path.c_str(), result_path.c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user