]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/machine/image-dbus.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / machine / image-dbus.c
index 84dc95eca13c4e4e3eeabf5c07d5b572c912bac7..698052dd8660f106254daa4d68eb68908145f4cf 100644 (file)
@@ -88,7 +88,7 @@ int bus_image_method_remove(
                 return r;
         }
 
-        errno_pipe_fd[0] = -1;
+        errno_pipe_fd[0] = -EBADF;
 
         return 1;
 }
@@ -211,7 +211,7 @@ int bus_image_method_clone(
                 return r;
         }
 
-        errno_pipe_fd[0] = -1;
+        errno_pipe_fd[0] = -EBADF;
 
         return 1;
 }