chiark / gitweb /
general: unify error code we generate on timeout
[elogind.git] / src / ask-password-api.c
index 845517a..f43075e 100644 (file)
@@ -132,7 +132,7 @@ int ask_password_tty(
                         r = -errno;
                         goto finish;
                 } else if (k == 0) {
-                        r = -ETIMEDOUT;
+                        r = -ETIME;
                         goto finish;
                 }