summaryrefslogtreecommitdiffstats
path: root/src/machine/machined-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-10-26 18:45:33 +0200
committerLennart Poettering <lennart@poettering.net>2023-10-26 22:30:42 +0200
commit711364049338677a8792285f0c38c039344931ed (patch)
treed1d29243500304ccb0f284b4ccf485325a4931eb /src/machine/machined-dbus.c
parentnspawn: Make parameter provided_mac a const for setup_veth() (diff)
downloadsystemd-711364049338677a8792285f0c38c039344931ed.tar.xz
systemd-711364049338677a8792285f0c38c039344931ed.zip
fd-uitl: rename PIPE_EBADF → EBADF_PAIR, and add EBADF_TRIPLET
We use it for more than just pipe() arrays. For example also for socketpair(). Hence let's give it a generic name. Also add EBADF_TRIPLET to mirror this for things like stdin/stdout/stderr arrays, which we use a bunch of times.
Diffstat (limited to 'src/machine/machined-dbus.c')
-rw-r--r--src/machine/machined-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c
index a12eb516cc..9fec047385 100644
--- a/src/machine/machined-dbus.c
+++ b/src/machine/machined-dbus.c
@@ -688,7 +688,7 @@ static int method_clean_pool(sd_bus_message *message, void *userdata, sd_bus_err
REMOVE_HIDDEN,
} mode;
- _cleanup_close_pair_ int errno_pipe_fd[2] = PIPE_EBADF;
+ _cleanup_close_pair_ int errno_pipe_fd[2] = EBADF_PAIR;
_cleanup_close_ int result_fd = -EBADF;
Manager *m = userdata;
Operation *operation;