chiark / gitweb /
shared: correct spacing near eol in code comments
[elogind.git] / src / shared / spawn-ask-password-agent.c
index c1a9c5868140edab497bb43d55c8e5227d4597bd..ee267833e64afee60afc9277a8fc1123416d8d5e 100644 (file)
@@ -49,7 +49,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("Failed to fork TTY ask password agent: %s", strerror(-r));
+                log_error_errno(r, "Failed to fork TTY ask password agent: %m");
 
         return r;
 }
@@ -62,6 +62,6 @@ void ask_password_agent_close(void) {
         /* Inform agent that we are done */
         kill(agent_pid, SIGTERM);
         kill(agent_pid, SIGCONT);
-        wait_for_terminate(agent_pid, NULL);
+        (void) wait_for_terminate(agent_pid, NULL);
         agent_pid = 0;
 }