aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pam.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pam.c b/pam.c
index a9e2036..fa483b8 100644
--- a/pam.c
+++ b/pam.c
@@ -104,8 +104,7 @@ pamconv(int nmsgs, const struct pam_message **msgs,
case PAM_ERROR_MSG:
case PAM_TEXT_INFO:
- if (fprintf(style == PAM_ERROR_MSG ? stderr : stdout,
- "%s\n", msgs[i]->msg) < 0)
+ if (fprintf(stderr, "%s\n", msgs[i]->msg) < 0)
goto fail;
break;