diff --git a/usr.bin/login/login.h b/usr.bin/login/login.h index 9d1b921dac6a..48ef31bb5920 100644 --- a/usr.bin/login/login.h +++ b/usr.bin/login/login.h @@ -29,7 +29,8 @@ void login_fbtab(char *, uid_t, gid_t); #ifdef USE_BSM_AUDIT void au_login_success(void); -void au_login_fail(char *errmsg, int na); +void au_login_fail(const char *errmsg, int na); +void audit_logout(void); #endif extern char **environ; diff --git a/usr.bin/login/login_audit.c b/usr.bin/login/login_audit.c index 0e0e09151290..a50a15893cf9 100644 --- a/usr.bin/login/login_audit.c +++ b/usr.bin/login/login_audit.c @@ -43,6 +43,8 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include +#include #include "login.h" @@ -109,7 +111,7 @@ au_login_success(void) * login attempts: header, subject, text, return. */ void -au_login_fail(char *errmsg, int na) +au_login_fail(const char *errmsg, int na) { token_t *tok; int aufd; @@ -170,8 +172,6 @@ audit_logout(void) { token_t *tok; int aufd; - au_mask_t aumask; - auditinfo_t auinfo; uid_t uid = pwd->pw_uid; gid_t gid = pwd->pw_gid; pid_t pid = getpid(); diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c index c0a4290a4677..684cf6131696 100644 --- a/usr.bin/login/login_fbtab.c +++ b/usr.bin/login/login_fbtab.c @@ -133,7 +133,7 @@ gid_t gid; { glob_t gl; char *path; - int i; + unsigned int i; if (glob(pattern, GLOB_NOSORT, NULL, &gl) != 0) return;