summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/port-aix.c')
-rw-r--r--openbsd-compat/port-aix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index b4c9454a1..c8d9517b6 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -70,7 +70,11 @@ record_failed_login(const char *user, const char *ttyname)
70{ 70{
71 char *hostname = get_canonical_hostname(options.use_dns); 71 char *hostname = get_canonical_hostname(options.use_dns);
72 72
73 loginfailed(user, hostname, ttyname); 73# ifdef AIX_LOGINFAILED_3ARG
74 loginfailed((char *)user, hostname, (char *)ttyname);
75# else
76 loginfailed((char *)user, hostname, (char *)ttyname, AUDIT_FAIL_AUTH);
77# endif
74} 78}
75# endif /* CUSTOM_FAILED_LOGIN */ 79# endif /* CUSTOM_FAILED_LOGIN */
76#endif /* _AIX */ 80#endif /* _AIX */