summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-07-22 15:14:40 +0000
committerdes <des@FreeBSD.org>2007-07-22 15:14:40 +0000
commit54314403b7e263abdae92bef49cd24f438059a98 (patch)
tree28735f19fee1a7856c0d8a4bab55d8fd2edba6bf /lib/libpam
parent0b34555b1b39eafb41d96bc9ec23503d146faedf (diff)
downloadFreeBSD-src-54314403b7e263abdae92bef49cd24f438059a98.zip
FreeBSD-src-54314403b7e263abdae92bef49cd24f438059a98.tar.gz
Whitespace cleanup
Approved by: re (rwatson)
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_lastlog/pam_lastlog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libpam/modules/pam_lastlog/pam_lastlog.c b/lib/libpam/modules/pam_lastlog/pam_lastlog.c
index 2ba43af..6b07dc4 100644
--- a/lib/libpam/modules/pam_lastlog/pam_lastlog.c
+++ b/lib/libpam/modules/pam_lastlog/pam_lastlog.c
@@ -177,18 +177,18 @@ PAM_EXTERN int
pam_sm_close_session(pam_handle_t *pamh __unused, int flags __unused,
int argc __unused, const char *argv[] __unused)
{
- const void *tty;
+ const void *tty;
- pam_get_item(pamh, PAM_TTY, (const void **)&tty);
+ pam_get_item(pamh, PAM_TTY, (const void **)&tty);
if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0)
tty = (const char *)tty + strlen(_PATH_DEV);
if (*(const char *)tty == '\0')
return (PAM_SERVICE_ERR);
- if (logout(tty) != 1)
- syslog(LOG_ERR, "%s(): no utmp record for %s",
+ if (logout(tty) != 1)
+ syslog(LOG_ERR, "%s(): no utmp record for %s",
__func__, (const char *)tty);
- logwtmp(tty, "", "");
- return (PAM_SUCCESS);
+ logwtmp(tty, "", "");
+ return (PAM_SUCCESS);
}
PAM_MODULE_ENTRY("pam_lastlog");
OpenPOWER on IntegriCloud