diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-22 13:00:39 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-22 13:00:39 +0000 |
commit | c138e89215d2a93a6e2790c6e9065b05b5921837 (patch) | |
tree | 3b6a08b1f51f7a584e54052cc3eda5a0f9f4c892 | |
parent | bce45fb8e6f8ddc4149a5bac413a2dec21a96881 (diff) | |
download | pam-c138e89215d2a93a6e2790c6e9065b05b5921837.tar.gz pam-c138e89215d2a93a6e2790c6e9065b05b5921837.tar.bz2 pam-c138e89215d2a93a6e2790c6e9065b05b5921837.zip |
Relevant BUGIDs:
Purpose of commit:
Commit summary:
---------------
bugfix: Fix compiler warnings
-rw-r--r-- | modules/pam_lastlog/pam_lastlog.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c index 1e7a3b4f..6e53c244 100644 --- a/modules/pam_lastlog/pam_lastlog.c +++ b/modules/pam_lastlog/pam_lastlog.c @@ -79,6 +79,7 @@ struct lastlog { #include <security/pam_modules.h> #include <security/_pam_macros.h> +#include <security/_pam_modutil.h> /* some syslogging */ @@ -237,8 +238,8 @@ static int last_login_date(pam_handle_t *pamh, int announce, uid_t uid) sleep(LASTLOG_IGNORE_LOCK_TIME); } - win = ( _pammodutil_read(last_fd, &last_login, sizeof(last_login)) - == sizeof(last_login) ); + win = (_pammodutil_read (last_fd, (char *) &last_login, + sizeof(last_login)) == sizeof(last_login)); last_lock.l_type = F_UNLCK; (void) fcntl(last_fd, F_SETLK, &last_lock); /* unlock */ @@ -378,7 +379,8 @@ static int last_login_date(pam_handle_t *pamh, int announce, uid_t uid) } D(("writing to the last_log file")); - (void) _pammodutil_write(last_fd, &last_login, sizeof(last_login)); + _pammodutil_write (last_fd, (char *) &last_login, + sizeof (last_login)); last_lock.l_type = F_UNLCK; (void) fcntl(last_fd, F_SETLK, &last_lock); /* unlock */ |