You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch

71 lines
2.7 KiB

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 */