summaryrefslogtreecommitdiff
path: root/src/core/automount.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-12-20 10:10:19 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-20 11:12:58 +0900
commit19ee48a6c29a03f6475689667b5c625a41589e72 (patch)
tree50ce8e0ca4bc9afaf8b89f5399473350203b898b /src/core/automount.c
parentf26c38edfa8bb74cd7fb54bd7ab268f3013bd150 (diff)
downloadsystemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.gz
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/core/automount.c')
-rw-r--r--src/core/automount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index 361034d7f4..4cffca419c 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -573,7 +573,7 @@ static void automount_trigger_notify(Unit *u, Unit *other) {
static void automount_enter_waiting(Automount *a) {
_cleanup_close_ int ioctl_fd = -EBADF;
- int pipe_fd[2] = { -EBADF, -EBADF };
+ int pipe_fd[2] = PIPE_EBADF;
char name[STRLEN("systemd-") + DECIMAL_STR_MAX(pid_t) + 1];
_cleanup_free_ char *options = NULL;
bool mounted = false;