Ticket #22949: patches.txt

File patches.txt, 1.8 KB (added by mun3ch@…, 14 years ago)

diff between .tgz and one which compiles

Line 
1[1mdiff --git a/man/texinfo2man.c b/man/texinfo2man.c[m
2[1mindex e301761..c95266f 100644[m
3[1m--- a/man/texinfo2man.c[m
4[1m+++ b/man/texinfo2man.c[m
5[36m@@ -1,5 +1,5 @@[m
6 #include <stdio.h>[m
7[31m-#include <malloc.h>[m
8[32m+[m[32m#include <stdlib.h>[m
9 #include <string.h>[m
10 #include <ctype.h>[m
11 [m
12[1mdiff --git a/src/indent.h b/src/indent.h[m
13[1mindex 76a8a39..e09dde1 100644[m
14[1m--- a/src/indent.h[m
15[1m+++ b/src/indent.h[m
16[36m@@ -96,10 +96,6 @@ extern char *cur_line;[m
17 /* Size of the input program, not including the ' \n\0' we add at the end */[m
18 extern unsigned long in_prog_size;[m
19 [m
20[31m-/* The output file. */[m
21[31m-extern FILE *output;[m
22[31m-[m
23[31m-[m
24 [m
25 extern char *labbuf;            /* buffer for label */[m
26 extern char *s_lab;             /* start ... */[m
27[1mdiff --git a/src/output.c b/src/output.c[m
28[1mindex f9a8464..4faa69b 100644[m
29[1m--- a/src/output.c[m
30[1m+++ b/src/output.c[m
31[36m@@ -12,6 +12,7 @@[m
32  */[m
33 [m
34 #include <stdio.h>[m
35[32m+[m[32m#include <stdlib.h>[m
36 #include <sys/types.h>[m
37 #include <utime.h>[m
38 #include <sys/stat.h>[m
39[36m@@ -737,11 +738,11 @@ extern void dump_line ([m
40                     [m
41                     if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))[m
42                     {[m
43[31m-                        fprintf (output, "%.*s", e_lab - s, s);[m
44[32m+[m               [32m      fprintf (output, "%.*s", (int)(e_lab - s), s);[m
45                     }[m
46                     else[m
47                     {[m
48[31m-                        fprintf (output, "/* %.*s */", e_lab - s, s);[m
49[32m+[m[32m                        fprintf (output, "/* %.*s */", (int)(e_lab - s), s);[m
50                     }[m
51                     [m
52                     /* no need to update cur_col: the very next thing will[m