Changeset 207 in openpam


Ignore:
Timestamp:
May 1, 2003, 6:11:15 PM (15 years ago)
Author:
Dag-Erling Smørgrav
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/pam_constants.h

    r182 r207  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/include/security/pam_constants.h#19 $
     34 * $P4: //depot/projects/openpam/include/security/pam_constants.h#20 $
    3535 */
    3636
     
    9898 */
    9999enum {
    100         PAM_SILENT                      = 0x80000000,
     100        /* some compilers promote 0x8000000 to long */
     101        PAM_SILENT                      = (-0x7fffffff - 1),
    101102        PAM_DISALLOW_NULL_AUTHTOK       = 0x1,
    102103        PAM_ESTABLISH_CRED              = 0x1,
Note: See TracChangeset for help on using the changeset viewer.