diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-10-26 18:45:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-10-26 22:30:42 +0200 |
commit | 711364049338677a8792285f0c38c039344931ed (patch) | |
tree | d1d29243500304ccb0f284b4ccf485325a4931eb /src/machine/machined-dbus.c | |
parent | nspawn: Make parameter provided_mac a const for setup_veth() (diff) | |
download | systemd-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.c | 2 |
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; |