]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/nscd-flush.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / shared / nscd-flush.c
index 9b0ba2d67a0826099d674779ec1829fb8323ab5a..dfc7db6964dc6e849c4d90ec4f41c40c1cf973e2 100644 (file)
@@ -23,7 +23,7 @@ struct nscdInvalidateRequest {
 static int nscd_flush_cache_one(const char *database, usec_t end) {
         size_t req_size, has_written = 0, has_read = 0, l;
         struct nscdInvalidateRequest *req;
-        _cleanup_close_ int fd = -1;
+        _cleanup_close_ int fd = -EBADF;
         int32_t resp;
         int events, r;