summaryrefslogtreecommitdiff
blob: de1dee6ed6734e0cb86263e62de1559ac310f5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff -Naur emech-3.0.99p3.org/src/gencmd.c emech-3.0.99p3/src/gencmd.c
--- emech-3.0.99p3.org/src/gencmd.c	2009-05-13 08:51:09.000000000 -0000
+++ emech-3.0.99p3/src/gencmd.c	2018-03-16 22:52:42.591033854 -0000
@@ -316,7 +316,7 @@
 			}
 			if (pass == __struct_acces)
 			{
-				printf("\t%i,\t/""* %s *""/\n",
+				printf("\t%li,\t/""* %s *""/\n",
 					pre_mcmd[wh].flags & CLEVEL,
 					pt);
 			}
@@ -390,7 +390,7 @@
 		}
 		pass--;
 	}
-	printf("#define LOCALHOST_ULONG %lu\n",inet_addr("127.1"));
+	printf("#define LOCALHOST_ULONG %u\n",inet_addr("127.1"));
 	printf("#else /""* MAIN_C *""/\n\n");
 	printf("extern OnMsg mcmd[];\n");
 	printf("extern OnMsg_access acmd[];\n\n");
@@ -404,29 +404,29 @@
 
 #ifdef BOTNET
 	combo.comboflags = 0; combo.x.noshare = 1;
-	fprintf(of,"#define COMBO_NOSHARE\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_NOSHARE\t0x%lx\n",combo.comboflags);
 	combo.comboflags = 0; combo.x.readonly = 1;
-	fprintf(of,"#define COMBO_READONLY\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_READONLY\t0x%lx\n",combo.comboflags);
 #endif /* BOTNET */
 
 #ifdef GREET
 	combo.comboflags = 0; combo.x.greetfile = 1;
-	fprintf(of,"#define COMBO_GREETFILE\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_GREETFILE\t0x%lx\n",combo.comboflags);
 	combo.comboflags = 0; combo.x.randline = 1;
-	fprintf(of,"#define COMBO_RANDLINE\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_RANDLINE\t0x%lx\n",combo.comboflags);
 #endif /* GREET */
 
 #ifdef BOUNCE
 	combo.comboflags = 0; combo.x.bounce = 1;
-	fprintf(of,"#define COMBO_BOUNCE\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_BOUNCE\t0x%lx\n",combo.comboflags);
 #endif /* BOUNCE */
 
 	combo.comboflags = 0; combo.x.echo = 1;
-	fprintf(of,"#define COMBO_ECHO\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_ECHO\t0x%lx\n",combo.comboflags);
 	combo.comboflags = 0; combo.x.aop = 1;
-	fprintf(of,"#define COMBO_AOP\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_AOP\t0x%lx\n",combo.comboflags);
 	combo.comboflags = 0; combo.x.avoice = 1;
-	fprintf(of,"#define COMBO_AVOICE\t0x%x\n",combo.comboflags);
+	fprintf(of,"#define COMBO_AVOICE\t0x%lx\n",combo.comboflags);
 
 	fclose(of);
 	return(0);
diff -Naur emech-3.0.99p3.org/src/function.c emech-3.0.99p3/src/function.c
--- emech-3.0.99p3.org/src/function.c	2009-05-17 20:25:29.000000000 -0000
+++ emech-3.0.99p3/src/function.c	2018-03-17 11:41:15.224075216 -0000
@@ -26,6 +26,7 @@
 #include "global.h"
 #include "h.h"
 #include "text.h"
+#include "linux/limits.h"
 
 LS char timebuf[24];		/* max format lentgh == 20+1, round up to nearest longword -> 24 */
 LS char idlestr[36];		/* max format lentgh == 24+1, round up to nearest longword -> 28 */