fd-util: rename CLOSE_AND_REPLACE() -> close_and_replace()
We have free_and_replace() and friends, they are all named with lower letters, even they are macros, not functions. For consistency, let's rename CLOSE_AND_REPLACE() with lower letters. This also mekes the macro used more places.
This commit is contained in:
committed by
Daan De Meyer
parent
cb19517490
commit
ee3455cf11
@@ -195,7 +195,7 @@ static int raw_import_maybe_convert_qcow2(RawImport *i) {
|
||||
|
||||
unlink_and_free(i->temp_path);
|
||||
i->temp_path = TAKE_PTR(t);
|
||||
CLOSE_AND_REPLACE(i->output_fd, converted_fd);
|
||||
close_and_replace(i->output_fd, converted_fd);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ static int raw_pull_maybe_convert_qcow2(RawPull *i) {
|
||||
|
||||
unlink_and_free(i->temp_path);
|
||||
i->temp_path = TAKE_PTR(t);
|
||||
CLOSE_AND_REPLACE(i->raw_job->disk_fd, converted_fd);
|
||||
close_and_replace(i->raw_job->disk_fd, converted_fd);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user