]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/homed-home-bus.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / home / homed-home-bus.c
index 4e3fd5f0ae6f994d11e55a4a495efd9717144b34..a47f4d8a844483f134a3b58ac215ee767d56f9ce 100644 (file)
@@ -597,7 +597,7 @@ int bus_home_method_acquire(
 
         _cleanup_(user_record_unrefp) UserRecord *secret = NULL;
         _cleanup_(operation_unrefp) Operation *o = NULL;
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         int r, please_suspend;
         Home *h = ASSERT_PTR(userdata);
 
@@ -635,7 +635,7 @@ int bus_home_method_ref(
                 void *userdata,
                 sd_bus_error *error) {
 
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         Home *h = ASSERT_PTR(userdata);
         HomeState state;
         int please_suspend, r;