File: 02-datatypes.diff

package info (click to toggle)
cracklib2 2.7-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 324 kB
  • ctags: 114
  • sloc: ansic: 1,931; makefile: 124; sh: 48; perl: 46
file content (21 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- cracklib2-2.7.orig/cracklib/packer.h
+++ cracklib2-2.7/cracklib/packer.h
@@ -7,14 +7,15 @@
  */
 
 #include <stdio.h>
+#include <sys/types.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 u_int8_t int8;
+typedef u_int16_t int16;
+typedef u_int32_t int32;
 #ifndef NUMWORDS
 #define NUMWORDS 	16
 #endif