summaryrefslogtreecommitdiff
path: root/src/tty-ask-password-agent.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-24 02:33:57 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-24 02:33:57 +0100
commitccc80078fe47395ffe0dd48cb6c81551d991ef4b (patch)
treebbb42e44b4ed74b39f7be2e12053bea81cc0505e /src/tty-ask-password-agent.c
parentaa2e2115873e102b8f6701f4211ddf7bec4c5e10 (diff)
general: unify error code we generate on timeout
Diffstat (limited to 'src/tty-ask-password-agent.c')
-rw-r--r--src/tty-ask-password-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c
index 14b01486bd..5e745247e5 100644
--- a/src/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent.c
@@ -128,7 +128,7 @@ static int ask_password_plymouth(
y = now(CLOCK_MONOTONIC);
if (y > until) {
- r = -ETIMEDOUT;
+ r = -ETIME;
goto finish;
}
@@ -149,7 +149,7 @@ static int ask_password_plymouth(
r = -errno;
goto finish;
} else if (j == 0) {
- r = -ETIMEDOUT;
+ r = -ETIME;
goto finish;
}