Some compilers (gcc at least) promote the integer literal 0x80000000
to long, while enums are required to fit in an int. To avoid the warning this causes, use (-0x7fffffff - 1) instead of 0x80000000. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@207 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
01c7951719
commit
13e7ee3988
|
@ -31,7 +31,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/include/security/pam_constants.h#19 $
|
||||
* $P4: //depot/projects/openpam/include/security/pam_constants.h#20 $
|
||||
*/
|
||||
|
||||
#ifndef _PAM_CONSTANTS_H_INCLUDED
|
||||
|
@ -97,7 +97,8 @@ enum {
|
|||
* XSSO 5.4
|
||||
*/
|
||||
enum {
|
||||
PAM_SILENT = 0x80000000,
|
||||
/* some compilers promote 0x8000000 to long */
|
||||
PAM_SILENT = (-0x7fffffff - 1),
|
||||
PAM_DISALLOW_NULL_AUTHTOK = 0x1,
|
||||
PAM_ESTABLISH_CRED = 0x1,
|
||||
PAM_DELETE_CRED = 0x2,
|
||||
|
|
Loading…
Reference in New Issue