[Dovecot] dovecot pam const

Timo Sirainen tss at iki.fi
Sun Apr 15 12:00:56 EEST 2007

On 15.4.2007, at 7.36, Frank Cusack wrote:

> In passdb-pam.c, I found some bits about const with some PAM data  
> types.
> Rather than check for each vendor of PAM, better to check for actual
> const usage ... some vendors have changed const-ness between releases.
> Also, actually testing constness is great for supporting new
> implementations that may come out.
> Here is the autoconf test I use in pam_otp_auth:
> --8<--
> # Check PAM headers for brokenness
> otp_CFLAGS="$CFLAGS"    # save

Otherwise I agree, but this relies on gcc-specific -Werror flag,  
which I'd rather not do. At least it would need some generic fallback  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070415/6546742c/attachment.pgp 

More information about the dovecot mailing list