]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/pull-common.c
tree-wide: introduce PIPE_EBADF macro
[thirdparty/systemd.git] / src / import / pull-common.c
index 028bae82a86a99c27e44b28cfa15f41320deea10..6e9aade3cff40eb4983527d0ddfdd12142c27069 100644 (file)
@@ -22,7 +22,6 @@
 #include "siphash24.h"
 #include "string-util.h"
 #include "strv.h"
-#include "util.h"
 #include "web-util.h"
 
 #define FILENAME_ESCAPE "/.#\"\'"
@@ -382,7 +381,7 @@ static int verify_gpg(
                 const void *payload, size_t payload_size,
                 const void *signature, size_t signature_size) {
 
-        _cleanup_close_pair_ int gpg_pipe[2] = { -1, -1 };
+        _cleanup_close_pair_ int gpg_pipe[2] = PIPE_EBADF;
         char sig_file_path[] = "/tmp/sigXXXXXX", gpg_home[] = "/tmp/gpghomeXXXXXX";
         _cleanup_(sigkill_waitp) pid_t pid = 0;
         bool gpg_home_created = false;