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/sysupdate/sysupdate-resource.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/sysupdate/sysupdate-resource.c')
-rw-r--r-- | src/sysupdate/sysupdate-resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysupdate/sysupdate-resource.c b/src/sysupdate/sysupdate-resource.c index da657034ea..197b530a02 100644 --- a/src/sysupdate/sysupdate-resource.c +++ b/src/sysupdate/sysupdate-resource.c @@ -267,7 +267,7 @@ static int download_manifest( size_t *ret_size) { _cleanup_free_ char *buffer = NULL, *suffixed_url = NULL; - _cleanup_close_pair_ int pfd[2] = PIPE_EBADF; + _cleanup_close_pair_ int pfd[2] = EBADF_PAIR; _cleanup_fclose_ FILE *manifest = NULL; size_t size = 0; pid_t pid; |