summaryrefslogtreecommitdiff
path: root/libpam/include/security/_pam_macros.h
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2008-01-28 14:50:21 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2008-01-28 14:50:21 +0000
commit93852756cbb7f5f003c8ef82d306255ba99200f1 (patch)
tree16ce9710bb5f245ef60ac6eb40ae530bb8abac45 /libpam/include/security/_pam_macros.h
parent03b88d95ae88955dacf12c7c2ee3f03bd0f7403b (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- 2008-01-28 Thorsten Kukuk <kukuk@thkukuk.de> * libpam/pam_audit.c: Include pam_modutil_private.h. * libpam/pam_item.c (pam_set_item): Fix compiler warning. * libpam/pam_end.c (pam_end): Cast to correct pointer type. * libpam/include/security/_pam_macros.h (_pam_overwrite_n): Use unsigned int.
Diffstat (limited to 'libpam/include/security/_pam_macros.h')
-rw-r--r--libpam/include/security/_pam_macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpam/include/security/_pam_macros.h b/libpam/include/security/_pam_macros.h
index 72aaf468..bd107cfb 100644
--- a/libpam/include/security/_pam_macros.h
+++ b/libpam/include/security/_pam_macros.h
@@ -28,7 +28,7 @@ do { \
#define _pam_overwrite_n(x,n) \
do { \
register char *__xx__; \
- register int __i__ = 0; \
+ register unsigned int __i__ = 0; \
if ((__xx__=(x))) \
for (;__i__<n; __i__++) \
__xx__[__i__] = 0; \
@@ -94,7 +94,7 @@ static void _pam_output_debug_info(const char *file, const char *fn
{
FILE *logfile;
int must_close = 1, fd;
-
+
#ifdef O_NOFOLLOW
if ((fd = open(_PAM_LOGFILE, O_WRONLY|O_NOFOLLOW|O_APPEND)) != -1) {
#else
@@ -120,7 +120,7 @@ static void _pam_output_debug(const char *format, ...)
va_list args;
FILE *logfile;
int must_close = 1, fd;
-
+
va_start(args, format);
#ifdef O_NOFOLLOW