X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fspawn-ask-password-agent.c;h=70466d17e5e3af461122bdfe4d17ad5ba5a66bc8;hb=9481673651515ab231e64e3c0417b75a804f476e;hp=6e31d8d138e8dd3103213c22d276536ce6404720;hpb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14;p=elogind.git
diff --git a/src/shared/spawn-ask-password-agent.c b/src/shared/spawn-ask-password-agent.c
index 6e31d8d13..70466d17e 100644
--- a/src/shared/spawn-ask-password-agent.c
+++ b/src/shared/spawn-ask-password-agent.c
@@ -19,16 +19,13 @@
along with systemd; If not, see .
***/
-#include
#include
#include
-#include
-#include
#include
-#include
#include "log.h"
#include "util.h"
+#include "process-util.h"
#include "spawn-ask-password-agent.h"
static pid_t agent_pid = 0;
@@ -49,7 +46,7 @@ int ask_password_agent_open(void) {
SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH,
SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, "--watch", NULL);
if (r < 0)
- log_error_errno(-r, "Failed to fork TTY ask password agent: %m");
+ log_error_errno(r, "Failed to fork TTY ask password agent: %m");
return r;
}