Blob Blame History Raw
Endast i john-1.6.hacked/run: john.pot
Endast i john-1.6.hacked/run: restore
diff -ru john-1.6/src/detect.c john-1.6.hacked/src/detect.c
--- john-1.6/src/detect.c	1998-12-03 01:29:50.000000000 +0100
+++ john-1.6.hacked/src/detect.c	2005-07-26 10:50:09.000000000 +0200
@@ -8,6 +8,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 int main(int argc, char **argv)
 {
@@ -32,11 +33,7 @@
 "#define ARCH_LITTLE_ENDIAN\t\t%d\n"
 "#define ARCH_INT_GT_32\t\t\t%d\n"
 "#define ARCH_ALLOWS_UNALIGNED\t\t0\n"
-#ifdef __alpha__
-"#define ARCH_INDEX\t\t\tunsigned long\n"
-#else
-"#define ARCH_INDEX\t\t\tunsigned int\n"
-#endif
+"#define ARCH_INDEX\t\t\tunsigned %s\n"
 "\n"
 #ifdef OS_TIMER
 "#define OS_TIMER\t\t\t1\n"
@@ -58,7 +55,8 @@
 		(int)(sizeof(long) * 8),
 		(int)(sizeof(long) * 8),
 		(int)(*(char *)&value),
-		(sizeof(int) > 4) ? 1 : 0);
+		(sizeof(int) > 4) ? 1 : 0,
+		sizeof(void*) == sizeof(long) ? "long" : "int");
 
 	puts(
 "#define CPU_DETECT\t\t\t0\n");
Endast i john-1.6.hacked/src: .detect.c.swp