]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - cracklib/packer.h
Use the correct variable sizes for int8/int16/int32 in CrackLib
[kerberos/krb5-strength.git] / cracklib / packer.h
index 9f10b82d90e3a04f9e5cd35e26d6c4e794b24c15..1bf32da427cd6de49a6d23a2e4269ef933e3feda 100644 (file)
  *   - Add ANSI C prototypes and prototype additional functions.
  * 2009-10-14  Russ Allbery <rra@stanford.edu>
  *   - Prototype changes for const cleanliness.
+ * 2010-03-14  Russ Allbery <rra@stanford.edu>
+ *   - Fix int8, int16, and int32 definitions.
  */
 
-#include <stdio.h>
+#include <config.h>
+#include <portable/system.h>
+
 #include <ctype.h>
 
 #define STRINGSIZE     1024
 #define TRUNCSTRINGSIZE        (STRINGSIZE/4)
 
-typedef unsigned char int8;
-typedef unsigned short int int16;
-typedef unsigned long int int32;
+typedef uint8_t int8;
+typedef uint16_t int16;
+typedef uint32_t int32;
 #ifndef NUMWORDS
 #define NUMWORDS       16
 #endif