return 0;
if (r < 0) {
- log_error_errno(-r, "Failed to query password: %m");
+ log_error_errno(r, "Failed to query password: %m");
return r;
}
for (;;) {
r = show_passwords();
if (r < 0)
- log_error_errno(-r, "Failed to show password: %m");
+ log_error_errno(r, "Failed to show password: %m");
if (poll(pollfd, _FD_MAX, -1) < 0) {
if (errno == EINTR)
r = show_passwords();
if (r < 0)
- log_error_errno(-r, "Error: %m");
+ log_error_errno(r, "Error: %m");
finish:
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;