tree-wide: use -EBADF more

This commit is contained in:
Yu Watanabe
2022-12-21 01:50:33 +09:00
parent 19ee48a6c2
commit 5bb1d7fbab
41 changed files with 65 additions and 65 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ static int hardlink_context_setup(
const char *to,
CopyFlags copy_flags) {
_cleanup_close_ int dt_copy = -1;
_cleanup_close_ int dt_copy = -EBADF;
int r;
assert(c);
+1 -1
View File
@@ -683,7 +683,7 @@ int loop_device_make_by_path_memory(
}
static LoopDevice* loop_device_free(LoopDevice *d) {
_cleanup_close_ int control = -1;
_cleanup_close_ int control = -EBADF;
int r;
if (!d)