Subject: CVS commit: src/lib/libpam/modules/pam_lastlog
To: None <source-changes@NetBSD.org>
From: Havard Eidnes <he@netbsd.org>
List: source-changes
Date: 02/04/2005 15:11:35
Module Name:	src
Committed By:	he
Date:		Fri Feb  4 15:11:35 UTC 2005

Modified Files:
	src/lib/libpam/modules/pam_lastlog: pam_lastlog.c

Log Message:
Introduce a few more temporary variables, in order to avoid an ugly
double cast in the pam_get_item() invocations.  The double cast
triggered a "discards qualifier" warning/error from gcc 2.95.3, while
trying to fix that by adding "cost" to the "void *" cast produced
a similar warning from gcc 3.3.  This now compiles without warning
with both compilers.

Approved by christos


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/lib/libpam/modules/pam_lastlog/pam_lastlog.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.