summaryrefslogtreecommitdiff
path: root/audio/gramofile/files/patch-20-warning-fixes
blob: b8925ad43e0cd2cafc5b48d0f5c2b93fb2781e71 (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Patch by Tom Harvey <TomHarvey@IndustryFigure.com>
# Rediffed. [dk]
# Also changed return type of bplay.c. [dk]
#PATCHOPTIONS: -p1
Index: bplaysrc/bplay.c
@@ -91,7 +91,7 @@
 extern void cleanupsems(void);
 
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
 	
 	int recorder = 0;		/* 1 if recording, 0 else */
@@ -398,6 +398,7 @@
 	}
 
 	finish_curses(0);
+	exit(0);	/* Not reached, but keeps compiler happy. */
 }
 
 void Usage(void)
Index: clrscr.c
@@ -8,6 +8,7 @@
  */
 
 #include "clrscr.h"
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else
Index: errorwindow.c
@@ -11,6 +11,8 @@
 #include "buttons.h"
 #include "boxes.h"
 #include "textwindow.h"
+
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else
Index: gramofile.c
@@ -42,7 +42,7 @@
   exit (0);
 }
 
-void
+int
 main (void)
 {
   char startdir[250];
@@ -63,4 +63,5 @@
   mainmenu (startdir);
 
   finishmenu (0);
+  return 0;
 }
Index: mainmenu.c
@@ -21,6 +21,7 @@
 #include "tracksplit.h"
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else
Index: signpr_cmf.c
@@ -30,6 +30,7 @@
 #include "yesnowindow.h"
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <math.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
@@ -88,8 +89,8 @@
   {
     " ^: no neat interpolation.              v: broad ticks not filtered out.       ",
     " ^: less ticks detected.                v: not all of tick interpolated.       ",
-    " ^: bad following of dynamics.          v: less ticks detected.                ",
-    " ^: bad following of dynamics.          v: less ticks detected.                ",
+    " ^: bad following of dynamics.          v: fewer ticks detected.               ",
+    " ^: bad following of dynamics.          v: fewer ticks detected.               ",
     " ^: only strong ticks detected.         v: music-ticks also filtered out.      ",
     " Discard changes.                                                              ",
     " Reset default values.                                                         ",
Index: signpr_cmf2.c
@@ -32,6 +32,7 @@
 #include "yesnowindow.h"
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <math.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
@@ -90,9 +91,9 @@
 
   char *helplines[8] =
   {
-    " ^: less ticks detected.                v: not all of tick interpolated.       ",
-    " ^: bad following of dynamics.          v: less ticks detected.                ",
-    " ^: bad following of dynamics.          v: less ticks detected.                ",
+    " ^: fewer ticks detected.               v: not all of tick interpolated.       ",
+    " ^: bad following of dynamics.          v: fewer ticks detected.               ",
+    " ^: bad following of dynamics.          v: fewer ticks detected.               ",
     " ^: detected tick length too short      v: detected tick length longer.        ",
     " ^: only strong ticks detected.         v: music-ticks also filtered out.      ",
     " Discard changes.                                                              ",
Index: signpr_doubmed.c
@@ -19,6 +19,7 @@
 #endif
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #ifndef SWIG
 #ifndef OLD_CURSES
 #include <ncurses.h>
Index: signpr_mean.c
@@ -19,6 +19,7 @@
 #endif
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #ifndef SWIG
 #ifndef OLD_CURSES
 #include <ncurses.h>
Index: signpr_median.c
@@ -19,6 +19,7 @@
 #endif
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #ifndef SWIG
 #ifndef OLD_CURSES
 #include <ncurses.h>
Index: signpr_rms.c
@@ -17,6 +17,7 @@
 #include "helpline.h"
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <math.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
Index: stringinput.c
@@ -8,6 +8,7 @@
  */
 
 #include "stringinput.h"
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else
Index: tracksplit_parammenu.c
@@ -16,6 +16,7 @@
 #include "helpline.h"
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else
Index: yesnowindow.c
@@ -11,6 +11,7 @@
 #include "buttons.h"
 #include "boxes.h"
 #include "textwindow.h"
+#include <string.h>
 #ifndef OLD_CURSES
 #include <ncurses.h>
 #else