Debian Codegraph @

debian/patches/70_gcc15.patch

raw symbols SCIP
1 Description: make it compile with gcc15
2 Index: rplay/librplay/async.c
3 ===================================================================
4 --- rplay.orig/librplay/async.c 2025-09-13 10:31:31.070439344 +0200
5 +++ rplay/librplay/async.c 2025-09-13 10:31:31.066439342 +0200
6 @@ -40,7 +40,7 @@
7 # include <varargs.h>
8 #endif
9
10 -typedef void (*cb)();
11 +typedef void (*cb)(int, int, char *);
12
13 typedef struct obuf_s
14 {
15 @@ -48,7 +48,8 @@
16 char *data;
17 char *current;
18 int length;
19 - cb callback;
20 + //cb callback;
21 + cb (callback);
22 } obuf;
23
24 typedef struct ibuf_s
25 @@ -67,9 +68,11 @@
26 ibuf *itail;
27 int writing;
28 int notify_mask;
29 - cb rcallback;
30 + cb (rcallback);
31 + //cb rcallback;
32 int rraw;
33 - cb wcallback;
34 + //cb wcallback;
35 + cb (wcallback);
36 int wraw;
37 } grp;
38
39 @@ -306,10 +309,10 @@
40 rptp_async_register(int rptp_fd, int what, cb callback)
41 #else
42 void
43 -rptp_async_register(rptp_fd, what, callback)
44 - int rptp_fd;
45 - int what;
46 - cb callback;
47 +rptp_async_register(int rptp_fd, int what, cb callback)
48 +// int rptp_fd;
49 +// int what;
50 +// cb callback;
51 #endif
52 {
53 if (rptp_fd < 0 || rptp_fd >= FD_SETSIZE)
54 @@ -351,9 +354,9 @@
55 rptp_async_process(int rptp_fd, int what)
56 #else
57 void
58 -rptp_async_process(rptp_fd, what)
59 - int rptp_fd;
60 - int what;
61 +rptp_async_process(int rptp_fd, int what)
62 +// int rptp_fd;
63 +// int what;
64 #endif
65 {
66 if (rptp_fd < 0 || rptp_fd >= FD_SETSIZE)
67 @@ -366,14 +369,14 @@
68 {
69 case RPTP_ASYNC_READ:
70 if (group[rptp_fd].rraw && group[rptp_fd].rcallback)
71 - (*group[rptp_fd].rcallback)(rptp_fd);
72 + (*group[rptp_fd].rcallback)(rptp_fd, 0, "");
73 else
74 read_proc(rptp_fd);
75 break;
76
77 case RPTP_ASYNC_WRITE:
78 if (group[rptp_fd].wraw && group[rptp_fd].wcallback)
79 - (*group[rptp_fd].wcallback)(rptp_fd);
80 + (*group[rptp_fd].wcallback)(rptp_fd, 0, "");
81 else
82 write_proc(rptp_fd);
83 break;
84 @@ -392,13 +395,13 @@
85 */
86 #ifdef __STDC__
87 void
88 -rptp_async_notify(int rptp_fd, int mask, void (*callback)())
89 +rptp_async_notify(int rptp_fd, int mask, void (*callback)(int, int, char *))
90 #else
91 void
92 -rptp_async_notify(rptp_fd, mask, callback)
93 - int rptp_fd;
94 - int mask;
95 - void (*callback)();
96 +rptp_async_notify(int rptp_fd, int mask, void (*callback)(int, int, char *))
97 +// int rptp_fd;
98 +// int mask;
99 +// void (*callback)();
100 #endif
101 {
102 char command[RPTP_MAX_LINE];
103 @@ -458,7 +461,7 @@
104 write_proc(int rptp_fd)
105 #else
106 static void
107 -write_proc(rptp_fd)
108 +write_proc(int rptp_fd)
109 #endif
110 {
111 obuf *current;
112 @@ -488,7 +491,7 @@
113 {
114 if (current->callback)
115 {
116 - (*current->callback)(rptp_fd);
117 + (*current->callback)(rptp_fd, 0, "");
118 }
119 if (current->data)
120 {
121 @@ -517,7 +520,7 @@
122 read_proc(int rptp_fd)
123 #else
124 static void
125 -read_proc(rptp_fd)
126 +read_proc(int rptp_fd)
127 #endif
128 {
129 char buffer[RPTP_MAX_LINE];
130 @@ -565,8 +568,7 @@
131 process_input(int rptp_fd)
132 #else
133 static void
134 -process_input(rptp_fd)
135 - int rptp_fd;
136 +process_input(int rptp_fd)
137 #endif
138 {
139 char *p;
140 @@ -663,9 +665,7 @@
141 notify_line(int rptp_fd, char *line)
142 #else
143 static void
144 -notify_line(rptp_fd, line)
145 - int rptp_fd;
146 - char *line;
147 +notify_line(int rptp_fd, char *line)
148 #endif
149 {
150 int what;
151 @@ -731,13 +731,12 @@
152 do_register(int rptp_fd)
153 #else
154 static void
155 -do_register(rptp_fd)
156 - int rptp_fd;
157 +do_register(int rptp_fd)
158 #endif
159 {
160 if (group[rptp_fd].wcallback)
161 {
162 - (*group[rptp_fd].wcallback)(rptp_fd, RPTP_ASYNC_ENABLE);
163 + (*group[rptp_fd].wcallback)(rptp_fd, RPTP_ASYNC_ENABLE, "");
164 }
165 group[rptp_fd].writing = 1;
166 }
167 @@ -751,13 +750,12 @@
168 do_unregister(int rptp_fd)
169 #else
170 static void
171 -do_unregister(rptp_fd)
172 - int rptp_fd;
173 +do_unregister(int rptp_fd)
174 #endif
175 {
176 if (group[rptp_fd].wcallback)
177 {
178 - (*group[rptp_fd].wcallback)(rptp_fd, RPTP_ASYNC_DISABLE);
179 + (*group[rptp_fd].wcallback)(rptp_fd, RPTP_ASYNC_DISABLE, "");
180 }
181 group[rptp_fd].writing = 0;
182 }
183 Index: rplay/lib/hash.c
184 ===================================================================
185 --- rplay.orig/lib/hash.c 2025-09-13 10:31:31.070439344 +0200
186 +++ rplay/lib/hash.c 2025-09-13 10:31:31.066439342 +0200
187 @@ -289,8 +289,7 @@
188 * No errors are recoverable.
189 */
190 void
191 -hash_die (handle)
192 - struct hash_control *handle;
193 +hash_die (struct hash_control *handle)
194 {
195 free ((char *) handle->hash_where);
196 free ((char *) handle);
197 @@ -310,10 +309,7 @@
198 * until your buffer or hash_stat[] is exausted.
199 */
200 void
201 -hash_say (handle, buffer, bufsiz)
202 - struct hash_control *handle;
203 - int buffer[ /*bufsiz*/ ];
204 - int bufsiz;
205 +hash_say (struct hash_control *handle, int buffer[ /*bufsiz*/ ], int bufsiz)
206 {
207 int *nd; /* limit of statistics block */
208 int *ip; /* scan statistics */
209 @@ -341,9 +337,7 @@
210 */
211 PTR /* NULL if string not in table, else */
212 /* returns value of deleted symbol */
213 -hash_delete (handle, string)
214 - struct hash_control *handle;
215 - const char *string;
216 +hash_delete (struct hash_control *handle, const char *string)
217 {
218 PTR retval;
219 struct hash_entry *entry;
220 @@ -377,10 +371,7 @@
221 * in the table.
222 */
223 PTR
224 -hash_replace (handle, string, value)
225 - struct hash_control *handle;
226 - const char *string;
227 - PTR value;
228 +hash_replace (struct hash_control *handle, const char *string, PTR value)
229 {
230 struct hash_entry *entry;
231 char *retval;
232 @@ -408,10 +399,7 @@
233 */
234
235 const char * /* return error string */
236 -hash_insert (handle, string, value)
237 - struct hash_control *handle;
238 - const char *string;
239 - PTR value;
240 +hash_insert (struct hash_control *handle, const char *string, PTR value)
241 {
242 struct hash_entry *entry;
243 const char *retval;
244 @@ -453,10 +441,7 @@
245 * false if we inserted.
246 */
247 const char *
248 -hash_jam (handle, string, value)
249 - struct hash_control *handle;
250 - const char *string;
251 - PTR value;
252 +hash_jam (struct hash_control *handle, const char *string, PTR value)
253 {
254 const char *retval;
255 struct hash_entry *entry;
256 @@ -491,8 +476,7 @@
257 * Internal.
258 */
259 static const char *
260 -hash_grow (handle) /* make a hash table grow */
261 - struct hash_control *handle;
262 +hash_grow (struct hash_control *handle) /* make a hash table grow */
263 {
264 struct hash_entry *newwall;
265 struct hash_entry *newwhere;
266 @@ -630,9 +614,7 @@
267 * yet. (The function has no graceful failures.)
268 */
269 char *
270 -hash_apply (handle, function)
271 - struct hash_control *handle;
272 - char *(*function) ();
273 +hash_apply (struct hash_control *handle, char *(*function)(const char *, PTR ))
274 {
275 struct hash_entry *entry;
276 struct hash_entry *wall;
277 @@ -655,9 +637,7 @@
278 * Return found value or NULL.
279 */
280 PTR
281 -hash_find (handle, string)
282 - struct hash_control *handle;
283 - const char *string;
284 +hash_find (struct hash_control *handle, const char *string)
285 {
286 struct hash_entry *entry;
287
288 @@ -678,10 +658,10 @@
289 * Internal.
290 */
291 static struct hash_entry * /* string slot, may be empty or deleted */
292 -hash_ask (handle, string, access)
293 - struct hash_control *handle;
294 - const char *string;
295 - int access; /* access type */
296 +hash_ask (struct hash_control *handle, const char *string, int access)
297 +// struct hash_control *handle;
298 +// const char *string;
299 +// int access; /* access type */
300 {
301 const char *string1; /* JF avoid strcmp calls */
302 const char *s;
303 @@ -758,9 +738,7 @@
304 * Internal.
305 */
306 static int
307 -hash_code (handle, string)
308 - struct hash_control *handle;
309 - const char *string;
310 +hash_code (struct hash_control *handle, const char *string)
311 {
312 long h; /* hash code built here */
313 long c; /* each character lands here */
314 @@ -899,8 +877,7 @@
315 }
316
317 char *
318 -what (description)
319 - char *description;
320 +what (char *description)
321 {
322 char *retval;
323 char *malloc ();
324 @@ -918,9 +895,7 @@
325 }
326
327 char *
328 -destroy (string, value)
329 - char *string;
330 - char *value;
331 +destroy (char *string, char *value)
332 {
333 free (string);
334 free (value);
335 @@ -929,9 +904,7 @@
336
337
338 char *
339 -applicatee (string, value)
340 - char *string;
341 - char *value;
342 +applicatee (char *string, char *value)
343 {
344 printf ("%.20s-%.20s\n", string, value);
345 return (NULL);
346 Index: rplay/adpcm/g711.c
347 ===================================================================
348 --- rplay.orig/adpcm/g711.c 2025-09-13 10:31:31.070439344 +0200
349 +++ rplay/adpcm/g711.c 2025-09-13 10:31:31.066439342 +0200
350 @@ -76,10 +76,7 @@
351 120, 121, 122, 123, 124, 125, 126, 127};
352
353 static int
354 -search(val, table, size)
355 - int val;
356 - short *table;
357 - int size;
358 +search(int val, short *table, int size)
359 {
360 int i;
361
362 @@ -110,8 +107,8 @@
363 * John Wiley & Sons, pps 98-111 and 472-476.
364 */
365 unsigned char
366 -linear2alaw(pcm_val)
367 - int pcm_val; /* 2's complement (16-bit range) */
368 +linear2alaw(int pcm_val)
369 +// int pcm_val; /* 2's complement (16-bit range) */
370 {
371 int mask;
372 int seg;
373 @@ -146,8 +143,7 @@
374 *
375 */
376 int
377 -alaw2linear(a_val)
378 - unsigned char a_val;
379 +alaw2linear(unsigned char a_val)
380 {
381 int t;
382 int seg;
383 @@ -202,8 +198,8 @@
384 * John Wiley & Sons, pps 98-111 and 472-476.
385 */
386 unsigned char
387 -linear2ulaw(pcm_val)
388 - int pcm_val; /* 2's complement (16-bit range) */
389 +linear2ulaw(int pcm_val)
390 +// int pcm_val; /* 2's complement (16-bit range) */
391 {
392 int mask;
393 int seg;
394 @@ -244,8 +240,7 @@
395 * original code word. This is in keeping with ISDN conventions.
396 */
397 int
398 -ulaw2linear(u_val)
399 - unsigned char u_val;
400 +ulaw2linear(unsigned char u_val)
401 {
402 int t;
403
404 @@ -264,8 +259,7 @@
405
406 /* A-law to u-law conversion */
407 unsigned char
408 -alaw2ulaw(aval)
409 - unsigned char aval;
410 +alaw2ulaw(unsigned char aval)
411 {
412 aval &= 0xff;
413 return ((aval & 0x80) ? (0xFF ^ _a2u[aval ^ 0xD5]) :
414 @@ -274,8 +268,7 @@
415
416 /* u-law to A-law conversion */
417 unsigned char
418 -ulaw2alaw(uval)
419 - unsigned char uval;
420 +ulaw2alaw(unsigned char uval)
421 {
422 uval &= 0xff;
423 return ((uval & 0x80) ? (0xD5 ^ (_u2a[0xFF ^ uval] - 1)) :
424 Index: rplay/adpcm/g721.c
425 ===================================================================
426 --- rplay.orig/adpcm/g721.c 2025-09-13 10:31:31.070439344 +0200
427 +++ rplay/adpcm/g721.c 2025-09-13 10:31:31.066439342 +0200
428 @@ -77,10 +77,7 @@
429 * the resulting code. -1 is returned for unknown input coding value.
430 */
431 int
432 -g721_encoder(sl, in_coding, state_ptr)
433 - int sl;
434 - int in_coding;
435 - struct g72x_state *state_ptr;
436 +g721_encoder(int sl, int in_coding, struct g72x_state *state_ptr)
437 {
438 short sezi, se, sez; /* ACCUM */
439 short d; /* SUBTA */
440 @@ -134,10 +131,7 @@
441 * return -1 for unknown out_coding value.
442 */
443 int
444 -g721_decoder(i, out_coding, state_ptr)
445 - int i;
446 - int out_coding;
447 - struct g72x_state *state_ptr;
448 +g721_decoder(int i, int out_coding, struct g72x_state *state_ptr)
449 {
450 short sezi, sei, sez, se; /* ACCUM */
451 short y; /* MIX */
452 Index: rplay/adpcm/g72x.c
453 ===================================================================
454 --- rplay.orig/adpcm/g72x.c 2025-09-13 10:31:31.070439344 +0200
455 +++ rplay/adpcm/g72x.c 2025-09-13 10:31:31.066439342 +0200
456 @@ -46,10 +46,7 @@
457 * Using linear search for simple coding.
458 */
459 static int
460 -quan(val, table, size)
461 - int val;
462 - short *table;
463 - int size;
464 +quan(int val, short *table, int size)
465 {
466 int i;
467
468 @@ -66,9 +63,7 @@
469 * "floating point" representation (4-bit exponent, 6-bit mantessa) "srn".
470 */
471 static int
472 -fmult(an, srn)
473 - int an;
474 - int srn;
475 +fmult(int an, int srn)
476 {
477 short anmag, anexp, anmant;
478 short wanexp, wanmag, wanmant;
479 @@ -95,8 +90,7 @@
480 * All the initial state values are specified in the CCITT G.721 document.
481 */
482 void
483 -g72x_init_state(state_ptr)
484 - struct g72x_state *state_ptr;
485 +g72x_init_state(struct g72x_state *state_ptr)
486 {
487 int cnta;
488
489 @@ -124,8 +118,7 @@
490 *
491 */
492 int
493 -predictor_zero(state_ptr)
494 - struct g72x_state *state_ptr;
495 +predictor_zero(struct g72x_state *state_ptr)
496 {
497 int i;
498 int sezi;
499 @@ -142,8 +135,7 @@
500 *
501 */
502 int
503 -predictor_pole(state_ptr)
504 - struct g72x_state *state_ptr;
505 +predictor_pole(struct g72x_state *state_ptr)
506 {
507 return (fmult(state_ptr->a[1] >> 2, state_ptr->sr[1]) +
508 fmult(state_ptr->a[0] >> 2, state_ptr->sr[0]));
509 @@ -155,8 +147,7 @@
510 *
511 */
512 int
513 -step_size(state_ptr)
514 - struct g72x_state *state_ptr;
515 +step_size(struct g72x_state *state_ptr)
516 {
517 int y;
518 int dif;
519 @@ -186,11 +177,11 @@
520 * as a subtraction.
521 */
522 int
523 -quantize(d, y, table, size)
524 - int d; /* Raw difference signal sample */
525 - int y; /* Step size multiplier */
526 - short *table; /* quantization table */
527 - int size; /* table size of short integers */
528 +quantize(int d, int y, short *table, int size)
529 +// int d; /* Raw difference signal sample */
530 +// int y; /* Step size multiplier */
531 +// short *table; /* quantization table */
532 +// int size; /* table size of short integers */
533 {
534 short dqm; /* Magnitude of 'd' */
535 short exp; /* Integer part of base 2 log of 'd' */
536 @@ -237,10 +228,10 @@
537 * Multiplication is performed in log base 2 domain as addition.
538 */
539 int
540 -reconstruct(sign, dqln, y)
541 - int sign; /* 0 for non-negative value */
542 - int dqln; /* G.72x codeword */
543 - int y; /* Step size multiplier */
544 +reconstruct(int sign, int dqln, int y)
545 +// int sign; /* 0 for non-negative value */
546 +// int dqln; /* G.72x codeword */
547 +// int y; /* Step size multiplier */
548 {
549 short dql; /* Log of 'dq' magnitude */
550 short dex; /* Integer part of log */
551 @@ -266,15 +257,15 @@
552 * updates the state variables for each output code
553 */
554 void
555 -update(code_size, y, wi, fi, dq, sr, dqsez, state_ptr)
556 - int code_size; /* distinguish 723_40 with others */
557 - int y; /* quantizer step size */
558 - int wi; /* scale factor multiplier */
559 - int fi; /* for long/short term energies */
560 - int dq; /* quantized prediction difference */
561 - int sr; /* reconstructed signal */
562 - int dqsez; /* difference from 2-pole predictor */
563 - struct g72x_state *state_ptr; /* coder state pointer */
564 +update(int code_size, int y, int wi, int fi, int dq, int sr, int dqsez, struct g72x_state *state_ptr)
565 +// int code_size; /* distinguish 723_40 with others */
566 +// int y; /* quantizer step size */
567 +// int wi; /* scale factor multiplier */
568 +// int fi; /* for long/short term energies */
569 +// int dq; /* quantized prediction difference */
570 +// int sr; /* reconstructed signal */
571 +// int dqsez; /* difference from 2-pole predictor */
572 +// struct g72x_state *state_ptr; /* coder state pointer */
573 {
574 int cnt;
575 short mag, exp, mant; /* Adaptive predictor, FLOAT A */
576 @@ -474,13 +465,13 @@
577 * adjusted A-law or u-law compressed sample.
578 */
579 int
580 -tandem_adjust_alaw(sr, se, y, i, sign, qtab)
581 - int sr; /* decoder output linear PCM sample */
582 - int se; /* predictor estimate sample */
583 - int y; /* quantizer step size */
584 - int i; /* decoder input code */
585 - int sign;
586 - short *qtab;
587 +tandem_adjust_alaw(int sr, int se, int y, int i, int sign, short *qtab)
588 +// int sr; /* decoder output linear PCM sample */
589 +// int se; /* predictor estimate sample */
590 +// int y; /* quantizer step size */
591 +// int i; /* decoder input code */
592 +// int sign;
593 +// short *qtab;
594 {
595 unsigned char sp; /* A-law compressed 8-bit code */
596 short dx; /* prediction error */
597 @@ -523,13 +514,13 @@
598 }
599
600 int
601 -tandem_adjust_ulaw(sr, se, y, i, sign, qtab)
602 - int sr; /* decoder output linear PCM sample */
603 - int se; /* predictor estimate sample */
604 - int y; /* quantizer step size */
605 - int i; /* decoder input code */
606 - int sign;
607 - short *qtab;
608 +tandem_adjust_ulaw(int sr, int se, int y, int i, int sign, short *qtab)
609 +// int sr; /* decoder output linear PCM sample */
610 +// int se; /* predictor estimate sample */
611 +// int y; /* quantizer step size */
612 +// int i; /* decoder input code */
613 +// int sign;
614 +// short *qtab;
615 {
616 unsigned char sp; /* u-law compressed 8-bit code */
617 short dx; /* prediction error */
618 Index: rplay/adpcm/decode.c
619 ===================================================================
620 --- rplay.orig/adpcm/decode.c 2025-09-13 10:31:31.070439344 +0200
621 +++ rplay/adpcm/decode.c 2025-09-13 10:31:31.066439342 +0200
622 @@ -15,9 +15,7 @@
623 * Returns 1 if there is residual input, returns -1 if eof, else returns 0.
624 */
625 int
626 -unpack_input(code, bits)
627 - unsigned char *code;
628 - int bits;
629 +unpack_input(unsigned char *code, int bits)
630 {
631 static unsigned int in_buffer = 0;
632 static int in_bits = 0;
633 @@ -38,9 +36,7 @@
634 }
635
636
637 -int main(argc, argv)
638 - int argc;
639 - char **argv;
640 +int main(int argc, char **argv)
641 {
642 short sample;
643 unsigned char code;
644 @@ -48,7 +44,7 @@
645 struct g72x_state state;
646 int out_coding;
647 int out_size;
648 - int (*dec_routine)();
649 + int (*dec_routine)(int, int, struct g72x_state *);
650 int dec_bits;
651
652 g72x_init_state(&state);
653 Index: rplay/adpcm/g723_24.c
654 ===================================================================
655 --- rplay.orig/adpcm/g723_24.c 2025-09-13 10:31:31.070439344 +0200
656 +++ rplay/adpcm/g723_24.c 2025-09-13 10:31:31.066439342 +0200
657 @@ -67,10 +67,7 @@
658 * Returns -1 if invalid input coding value.
659 */
660 int
661 -g723_24_encoder(sl, in_coding, state_ptr)
662 - int sl;
663 - int in_coding;
664 - struct g72x_state *state_ptr;
665 +g723_24_encoder(int sl, int in_coding, struct g72x_state *state_ptr)
666 {
667 short sei, sezi, se, sez; /* ACCUM */
668 short d; /* SUBTA */
669 @@ -122,10 +119,7 @@
670 * -1 is returned if the output coding is unknown.
671 */
672 int
673 -g723_24_decoder(i, out_coding, state_ptr)
674 - int i;
675 - int out_coding;
676 - struct g72x_state *state_ptr;
677 +g723_24_decoder(int i, int out_coding, struct g72x_state *state_ptr)
678 {
679 short sezi, sei, sez, se; /* ACCUM */
680 short y; /* MIX */
681 Index: rplay/adpcm/g723_40.c
682 ===================================================================
683 --- rplay.orig/adpcm/g723_40.c 2025-09-13 10:31:31.070439344 +0200
684 +++ rplay/adpcm/g723_40.c 2025-09-13 10:31:31.066439342 +0200
685 @@ -84,10 +84,7 @@
686 * Returns -1 if the input coding value is invalid.
687 */
688 int
689 -g723_40_encoder(sl, in_coding, state_ptr)
690 - int sl;
691 - int in_coding;
692 - struct g72x_state *state_ptr;
693 +g723_40_encoder(int sl, int in_coding, struct g72x_state *state_ptr)
694 {
695 short sei, sezi, se, sez; /* ACCUM */
696 short d; /* SUBTA */
697 @@ -140,10 +137,7 @@
698 * -1 is returned if the output coding is unknown.
699 */
700 int
701 -g723_40_decoder(i, out_coding, state_ptr)
702 - int i;
703 - int out_coding;
704 - struct g72x_state *state_ptr;
705 +g723_40_decoder(int i, int out_coding, struct g72x_state *state_ptr)
706 {
707 short sezi, sei, sez, se; /* ACCUM */
708 short y, dif; /* MIX */
709 Index: rplay/rplay/rplay.c
710 ===================================================================
711 --- rplay.orig/rplay/rplay.c 2025-09-13 10:31:31.070439344 +0200
712 +++ rplay/rplay/rplay.c 2025-09-15 00:15:19.161734675 +0200
713 @@ -93,10 +93,10 @@
714 typedef int (*PLAY_FUNC) ();
715 #endif
716
717 -void doit(), play(), usage(), interrupt();
718 -int server_has_sound();
719 -char *info2str();
720 -int play_with_flow(), play_with_play();
721 +void doit(char *), play(int, char *, int, RPLAY *, PLAY_FUNC *), usage(), interrupt(int);
722 +int server_has_sound(int, char *, int);
723 +char *info2str(char *);
724 +int play_with_flow(int, char *, int, RPLAY *, int), play_with_play(int, char *, int, RPLAY *, int);
725
726 RPLAY *rp;
727 char cwd[MAXPATHLEN];
728 @@ -108,9 +108,7 @@
729 #ifdef __STDC__
730 int main(int argc, char **argv)
731 #else
732 -int main(argc, argv)
733 - int argc;
734 - char **argv;
735 +int main(int argc, char **argv)
736 #endif
737 {
738 int i, n, c, command, volume, val;
739 @@ -406,8 +404,7 @@
740 doit(char *hostp)
741 #else
742 void
743 -doit(hostp)
744 - char *hostp;
745 +doit(char *hostp)
746 #endif
747 {
748 PLAY_FUNC *play_table;
749 @@ -923,7 +920,7 @@
750 }
751
752 void
753 -interrupt()
754 +interrupt(int not_used)
755 {
756 interrupted++;
757 fprintf(stderr, "rplay: *interrupt*\n");
758 Index: rplay/lib/tilde.c
759 ===================================================================
760 --- rplay.orig/lib/tilde.c 2025-09-13 10:31:31.070439344 +0200
761 +++ rplay/lib/tilde.c 2025-09-13 10:31:31.066439342 +0200
762 @@ -48,9 +48,9 @@
763 #endif /* USG && !defined (HAVE_GETPW_DECLS) */
764
765 #if !defined (savestring)
766 -extern char *xmalloc ();
767 +extern char *xmalloc (int);
768 # ifndef strcpy
769 -extern char *strcpy ();
770 +extern char *strcpy (char *, const char *);
771 # endif
772 #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
773 #endif /* !savestring */
774 @@ -64,9 +64,9 @@
775 #endif /* !NULL */
776
777 #if defined (TEST) || defined (STATIC_MALLOC)
778 -static char *xmalloc (), *xrealloc ();
779 +static char *xmalloc (int), *xrealloc (char *, int);
780 #else
781 -extern char *xmalloc (), *xrealloc ();
782 +extern char *xmalloc (int), *xrealloc (char *, int);
783 #endif /* TEST || STATIC_MALLOC */
784
785 /* The default value of tilde_additional_prefixes. This is set to
786 @@ -101,9 +101,7 @@
787 the tilde which starts the expansion. Place the length of the text
788 which identified this tilde starter in LEN, excluding the tilde itself. */
789 static int
790 -tilde_find_prefix (string, len)
791 - char *string;
792 - int *len;
793 +tilde_find_prefix (char *string, int *len)
794 {
795 register int i, j, string_len;
796 register char **prefixes = tilde_additional_prefixes;
797 @@ -134,8 +132,7 @@
798 /* Find the end of a tilde expansion in STRING, and return the index of
799 the character which ends the tilde definition. */
800 static int
801 -tilde_find_suffix (string)
802 - char *string;
803 +tilde_find_suffix (char *string)
804 {
805 register int i, j, string_len;
806 register char **suffixes = tilde_additional_suffixes;
807 @@ -158,10 +155,9 @@
808
809 /* Return a new string which is the result of tilde expanding STRING. */
810 char *
811 -tilde_expand (string)
812 - char *string;
813 +tilde_expand (char *string)
814 {
815 - char *result, *tilde_expand_word ();
816 + char *result, *tilde_expand_word (char *);
817 int result_size, result_index;
818
819 result_size = result_index = 0;
820 @@ -221,8 +217,7 @@
821 /* Do the work of tilde expansion on FILENAME. FILENAME starts with a
822 tilde. If there is no expansion, call tilde_expansion_failure_hook. */
823 char *
824 -tilde_expand_word (filename)
825 - char *filename;
826 +tilde_expand_word (char *filename)
827 {
828 char *dirname;
829
830 @@ -312,9 +307,7 @@
831 #undef NULL
832 #include <stdio.h>
833
834 -main (argc, argv)
835 - int argc;
836 - char **argv;
837 +main (int argc, char **argv)
838 {
839 char *result, line[512];
840 int done = 0;
841 @@ -345,8 +338,7 @@
842 static void memory_error_and_abort ();
843
844 static char *
845 -xmalloc (bytes)
846 - int bytes;
847 +xmalloc (int bytes)
848 {
849 char *temp = (char *)malloc (bytes);
850
851 @@ -356,9 +348,7 @@
852 }
853
854 static char *
855 -xrealloc (pointer, bytes)
856 - char *pointer;
857 - int bytes;
858 +xrealloc (char *pointer, int bytes)
859 {
860 char *temp;
861
862 Index: rplay/include/rplay.h
863 ===================================================================
864 --- rplay.orig/include/rplay.h 2025-09-13 10:31:31.070439344 +0200
865 +++ rplay/include/rplay.h 2025-09-13 10:31:31.066439342 +0200
866 @@ -274,10 +274,10 @@
867 extern int rptp_getline (int rptp_fd, char *buf, int nbytes);
868 extern int rptp_command (int rptp_fd, char *command, char *response, int response_size);
869 extern char *rptp_parse (char *response, char *name);
870 -extern int rptp_async_putline (int rptp_fd, void (*callback)(), char *fmt, ...);
871 -extern int rptp_async_write (int rptp_fd, void (*callback)(), char *ptr, int nbytes);
872 -extern void rptp_async_register(int rptp_fd, int what, void (*callback)());
873 -extern void rptp_async_notify (int rptp_fd, int mask, void (*callback)());
874 +extern int rptp_async_putline (int rptp_fd, void (*callback)(int, int, char *), char *fmt, ...);
875 +extern int rptp_async_write (int rptp_fd, void (*callback)(int, int, char *), char *ptr, int nbytes);
876 +extern void rptp_async_register(int rptp_fd, int what, void (*callback)(int, int, char *));
877 +extern void rptp_async_notify (int rptp_fd, int mask, void (*callback)(int, int, char *));
878 extern void rptp_async_process (int rptp_fd, int what);
879 extern int rptp_main_loop (void);
880 extern void rptp_stop_main_loop (int);
881 Index: rplay/lib/tilde.h
882 ===================================================================
883 --- rplay.orig/lib/tilde.h 2025-09-13 10:31:31.070439344 +0200
884 +++ rplay/lib/tilde.h 2025-09-15 08:51:31.347019197 +0200
885 @@ -8,7 +8,7 @@
886 # define __FUNCTION_DEF
887 typedef int Function ();
888 typedef void VFunction ();
889 -typedef char *CPFunction ();
890 +typedef char *CPFunction (char *);
891 typedef char **CPPFunction ();
892 #endif /* _FUNCTION_DEF */
893
894 @@ -29,10 +29,10 @@
895 extern char **tilde_additional_suffixes;
896
897 /* Return a new string which is the result of tilde expanding STRING. */
898 -extern char *tilde_expand ();
899 +extern char *tilde_expand (char *);
900
901 /* Do the work of tilde expansion on FILENAME. FILENAME starts with a
902 tilde. If there is no expansion, call tilde_expansion_failure_hook. */
903 -extern char *tilde_expand_word ();
904 +extern char *tilde_expand_word (char *);
905
906 #endif /* __TILDE_H__ */
907 Index: rplay/adpcm/encode.c
908 ===================================================================
909 --- rplay.orig/adpcm/encode.c 2025-09-13 10:31:31.070439344 +0200
910 +++ rplay/adpcm/encode.c 2025-09-13 10:31:31.066439342 +0200
911 @@ -15,9 +15,7 @@
912 * Returns 1 if there is residual output, else returns 0.
913 */
914 int
915 -pack_output(code, bits)
916 - unsigned code;
917 - int bits;
918 +pack_output(unsigned code, int bits)
919 {
920 static unsigned int out_buffer = 0;
921 static int out_bits = 0;
922 @@ -35,9 +33,7 @@
923 }
924
925
926 -int main(argc, argv)
927 - int argc;
928 - char **argv;
929 +int main(int argc, char **argv)
930 {
931 struct g72x_state state;
932 unsigned char sample_char;
933 @@ -47,7 +43,7 @@
934 int in_coding;
935 int in_size;
936 unsigned *in_buf;
937 - int (*enc_routine)();
938 + int (*enc_routine)(int, int, struct g72x_state *);
939 int enc_bits;
940
941 g72x_init_state(&state);
942 Index: rplay/rplayd/cdrom.h
943 ===================================================================
944 --- rplay.orig/rplayd/cdrom.h 2025-09-13 10:31:31.070439344 +0200
945 +++ rplay/rplayd/cdrom.h 2025-09-13 10:31:31.066439342 +0200
946 @@ -50,7 +50,8 @@
947 #ifdef __STDC_
948 extern void cdrom_reader (int index, int starting_track, int ending_track, int output_fd);
949 #else
950 -extern void cdrom_reader (/* int index, int starting_track, int ending_track, int output_fd */);
951 +extern void cdrom_reader (int index, int starting_track, int ending_track, int output_fd);
952 +//extern void cdrom_reader (/* int index, int starting_track, int ending_track, int output_fd */);
953 #endif
954
955 #endif /* HAVE_CDROM */
956 Index: rplay/rplayd/helper.h
957 ===================================================================
958 --- rplay.orig/rplayd/helper.h 2025-09-13 10:31:31.070439344 +0200
959 +++ rplay/rplayd/helper.h 2025-09-13 10:31:31.066439342 +0200
960 @@ -55,9 +55,9 @@
961
962 extern HELPER *helpers;
963
964 -extern void helper_read (/* char *filename */);
965 -extern void helper_stat (/* char *filename */);
966 -extern HELPER *helper_lookup (/* char *sound */);
967 +extern void helper_read (char *filename);
968 +extern void helper_stat (char *filename);
969 +extern HELPER *helper_lookup (char *sound);
970
971 #endif /* HAVE_HELPERS */
972 #endif /* _helper_h */
973 Index: rplay/rplayd/misc.c
974 ===================================================================
975 --- rplay.orig/rplayd/misc.c 2025-09-13 10:31:31.070439344 +0200
976 +++ rplay/rplayd/misc.c 2025-09-13 10:31:31.066439342 +0200
977 @@ -549,24 +549,21 @@
978 }
979
980 unsigned short
981 -little_short(p)
982 - char *p;
983 +little_short(char *p)
984 {
985 return (((unsigned long) (((unsigned char *) p)[1])) << 8) |
986 ((unsigned long) (((unsigned char *) p)[0]));
987 }
988
989 unsigned short
990 -big_short(p)
991 - char *p;
992 +big_short(char *p)
993 {
994 return (((unsigned long) (((unsigned char *) p)[0])) << 8) |
995 ((unsigned long) (((unsigned char *) p)[1]));
996 }
997
998 unsigned long
999 -little_long(p)
1000 - char *p;
1001 +little_long(char *p)
1002 {
1003 return (((unsigned long) (((unsigned char *) p)[3])) << 24) |
1004 (((unsigned long) (((unsigned char *) p)[2])) << 16) |
1005 @@ -575,8 +572,7 @@
1006 }
1007
1008 unsigned long
1009 -big_long(p)
1010 - char *p;
1011 +big_long(char *p)
1012 {
1013 return (((unsigned long) (((unsigned char *) p)[0])) << 24) |
1014 (((unsigned long) (((unsigned char *) p)[1])) << 16) |
1015 @@ -631,8 +627,8 @@
1016 ****************************************************************/
1017
1018 double
1019 -ConvertFromIeeeExtended(bytes)
1020 - unsigned char *bytes; /* LCN */
1021 +ConvertFromIeeeExtended(unsigned char *bytes)
1022 +// unsigned char *bytes; /* LCN */
1023 {
1024 double f;
1025 int expon;
1026 Index: rplay/rplayd/misc.h
1027 ===================================================================
1028 --- rplay.orig/rplayd/misc.h 2025-09-13 10:31:31.070439344 +0200
1029 +++ rplay/rplayd/misc.h 2025-09-13 10:31:31.066439342 +0200
1030 @@ -67,10 +67,10 @@
1031 extern char *audio_port_to_string ( /* int port */ );
1032 #endif
1033
1034 -unsigned short little_short ( /* char *p */ );
1035 -unsigned short big_short ( /* char *p */ );
1036 -unsigned long little_long ( /* char *p */ );
1037 -unsigned long big_long ( /* char *p */ );
1038 -double ConvertFromIeeeExtended ( /* unsigned char *bytes */ );
1039 +unsigned short little_short (char *p);
1040 +unsigned short big_short (char *p);
1041 +unsigned long little_long (char *p);
1042 +unsigned long big_long (char *p);
1043 +double ConvertFromIeeeExtended (unsigned char *bytes);
1044
1045 #endif /* _misc_h */
1046 Index: rplay/rplayd/native.c
1047 ===================================================================
1048 --- rplay.orig/rplayd/native.c 2025-09-13 10:31:30.994439300 +0200
1049 +++ rplay/rplayd/native.c 2025-09-14 23:51:22.689477479 +0200
1050 @@ -35,23 +35,23 @@
1051
1052 /* Native means 16-bit signed. */
1053
1054 -static int ulaw_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1055 -static int s8_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1056 -static int u8_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1057 -static int big_s16_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1058 -static int big_u16_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1059 -static int little_s16_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1060 -static int little_u16_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1061 -static int native_to_native( /* SPOOL *sp, char *native_buf, int nsamples, int nchannels */ );
1062 -static int native_to_ulaw( /* char *native_buf, int nsamples, int nchannels */ );
1063 -static int native_to_s8( /* char *native_buf, int nsamples, int nchannels */ );
1064 -static int native_to_u8( /* char *native_buf, int nsamples, int nchannels */ );
1065 -static int native_to_s16( /* char *native_buf, int nsamples, int nchannels */ );
1066 -static int native_to_u16( /* char *native_buf, int nsamples, int nchannels */ );
1067 -static int native_to_g721( /* char *native_buf, int nsamples, int nchannels */ );
1068 -static int native_to_g723_3( /* char *native_buf, int nsamples, int nchannels */ );
1069 -static int native_to_g723_5( /* char *native_buf, int nsamples, int nchannels */ );
1070 -static int native_to_gsm( /* char *native_buf, int nsamples, int nchannels */ );
1071 +static int ulaw_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1072 +static int s8_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1073 +static int u8_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1074 +static int big_s16_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1075 +static int big_u16_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1076 +static int little_s16_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1077 +static int little_u16_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1078 +static int native_to_native(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1079 +static int native_to_ulaw(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1080 +static int native_to_s8(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1081 +static int native_to_u8(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1082 +static int native_to_s16(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1083 +static int native_to_u16(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1084 +static int native_to_g721(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1085 +static int native_to_g723_3(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1086 +static int native_to_g723_5(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1087 +static int native_to_gsm(SPOOL *sp, char *native_buf, int nsamples, int nchannels);
1088
1089 /* Setup the to and from native table. */
1090 NATIVE_TABLE native_table[] =
1091 @@ -94,20 +94,14 @@
1092
1093 /* Initialize the native audio buffer. */
1094 void
1095 -zero_native(native_buf, nsamples, nchannels)
1096 - char *native_buf;
1097 - int nsamples;
1098 - int nchannels;
1099 +zero_native(char *native_buf, int nsamples, int nchannels)
1100 {
1101 memset(native_buf, 0, nsamples * nchannels * 2); /* 2 == 16-bit */
1102 }
1103
1104
1105 void
1106 -level(native_buf, nsamples, nchannels)
1107 - char *native_buf;
1108 - int nsamples;
1109 - int nchannels;
1110 +level(char *native_buf, int nsamples, int nchannels)
1111 {
1112 short *p = (short *) native_buf, sample;
1113 int n = nsamples * nchannels;
1114 @@ -166,10 +160,7 @@
1115 #ifdef FAKE_VOLUME
1116 /* Simulate hardware volume control. */
1117 void
1118 -fake_volume(native_buf, nsamples, nchannels)
1119 - char *native_buf;
1120 - int nsamples;
1121 - int nchannels;
1122 +fake_volume(char *native_buf, int nsamples, int nchannels)
1123 {
1124 short *p = (short *) native_buf;
1125 int n = nsamples * nchannels;
1126 @@ -246,14 +237,13 @@
1127 } \
1128 }
1129
1130 +
1131 +//XXX org: FUNC (SPOOL *sp, short *native_buf, int nsamples, int nchannels)
1132 +
1133 /* Return 0 when the sound is over, otherwise return 1. */
1134 #define x_to_native(FUNC, SAMPLE_TO_NATIVE) \
1135 static int \
1136 -FUNC (sp, native_buf, nsamples, nchannels) \
1137 - SPOOL *sp; \
1138 - short *native_buf; \
1139 - int nsamples; \
1140 - int nchannels; \
1141 +FUNC (SPOOL *sp, char *native_buf, int nsamples, int nchannels) \
1142 { \
1143 SOUND *curr_sound; \
1144 short new_volume; \
1145 @@ -394,11 +384,8 @@
1146 linear = (*((short *) sp->ptr + curr_channel))
1147 )
1148
1149 - static int
1150 - native_to_ulaw(native_buf, nsamples, nchannels)
1151 - char *native_buf;
1152 - int nsamples;
1153 - int nchannels;
1154 +static int
1155 +native_to_ulaw(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1156 {
1157 short *from = (short *) native_buf;
1158 char *to = (char *) native_buf;
1159 @@ -413,10 +400,7 @@
1160 }
1161
1162 static int
1163 -native_to_s8(native_buf, nsamples, nchannels)
1164 - char *native_buf;
1165 - int nsamples;
1166 - int nchannels;
1167 +native_to_s8(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1168 {
1169 short *from = (short *) native_buf;
1170 char *to = (char *) native_buf;
1171 @@ -431,10 +415,7 @@
1172 }
1173
1174 static int
1175 -native_to_u8(native_buf, nsamples, nchannels)
1176 - char *native_buf;
1177 - int nsamples;
1178 - int nchannels;
1179 +native_to_u8(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1180 {
1181 short *from = (short *) native_buf;
1182 char *to = (char *) native_buf;
1183 @@ -449,20 +430,14 @@
1184 }
1185
1186 static int
1187 -native_to_s16(native_buf, nsamples, nchannels)
1188 - char *native_buf;
1189 - int nsamples;
1190 - int nchannels;
1191 +native_to_s16(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1192 {
1193 /* The native audio buffer is already signed 16-bit. */
1194 return 0;
1195 }
1196
1197 static int
1198 -native_to_u16(native_buf, nsamples, nchannels)
1199 - char *native_buf;
1200 - int nsamples;
1201 - int nchannels;
1202 +native_to_u16(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1203 {
1204 short *from = (short *) native_buf;
1205 short *to = (short *) native_buf;
1206 @@ -478,30 +453,21 @@
1207
1208 #ifdef HAVE_ADPCM
1209 static int
1210 -native_to_g721(native_buf, nsamples, nchannels)
1211 - char *native_buf;
1212 - int nsamples;
1213 - int nchannels;
1214 +native_to_g721(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1215 {
1216 /* NOT SUPPORTED */
1217 return 0;
1218 }
1219
1220 static int
1221 -native_to_g723_3(native_buf, nsamples, nchannels)
1222 - char *native_buf;
1223 - int nsamples;
1224 - int nchannels;
1225 +native_to_g723_3(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1226 {
1227 /* NOT SUPPORTED */
1228 return 0;
1229 }
1230
1231 static int
1232 -native_to_g723_5(native_buf, nsamples, nchannels)
1233 - char *native_buf;
1234 - int nsamples;
1235 - int nchannels;
1236 +native_to_g723_5(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1237 {
1238 /* NOT SUPPORTED */
1239 return 0;
1240 @@ -510,10 +476,7 @@
1241
1242 #ifdef HAVE_GSM
1243 static int
1244 -native_to_gsm(native_buf, nsamples, nchannels)
1245 - char *native_buf;
1246 - int nsamples;
1247 - int nchannels;
1248 +native_to_gsm(SPOOL *sp, char *native_buf, int nsamples, int nchannels)
1249 {
1250 /* NOT SUPPORTED */
1251 return 0;
1252 Index: rplay/rplayd/native.h
1253 ===================================================================
1254 --- rplay.orig/rplayd/native.h 2025-09-07 11:22:11.455470614 +0200
1255 +++ rplay/rplayd/native.h 2025-09-14 23:34:19.585313905 +0200
1256 @@ -32,7 +32,8 @@
1257 #include "spool.h"
1258
1259 #ifdef __STDC__
1260 -typedef int (*NATIVE_FUNC) (char *, int, int);
1261 +//XXX original: typedef int (*NATIVE_FUNC) (char *, int, int);
1262 +typedef int (*NATIVE_FUNC) (SPOOL *, char *, int, int);
1263 #else
1264 typedef int (*NATIVE_FUNC) ();
1265 #endif
1266 @@ -45,11 +46,11 @@
1267 NATIVE_TABLE;
1268 extern NATIVE_TABLE native_table[];
1269
1270 -extern void zero_native ( /* char *native_buf, int nsamples, int nchannels */ );
1271 -extern void level ( /* char *native_buf, int nsamples, int nchannels */ );
1272 +extern void zero_native (char *native_buf, int nsamples, int nchannels);
1273 +extern void level (char *native_buf, int nsamples, int nchannels);
1274
1275 #ifdef FAKE_VOLUME
1276 -extern void fake_volume ( /* char *native_buf, int nsamples, int nchannels */ );
1277 +extern void fake_volume (char *native_buf, int nsamples, int nchannels);
1278 #endif /* FAKE_VOLUME */
1279
1280 #endif /* _native_h */
1281 Index: rplay/rplayd/rplayd.c
1282 ===================================================================
1283 --- rplay.orig/rplayd/rplayd.c 2025-09-13 10:31:31.054439335 +0200
1284 +++ rplay/rplayd/rplayd.c 2025-09-14 23:58:03.509544480 +0200
1285 @@ -288,7 +288,7 @@
1286 #endif
1287 #endif
1288
1289 -extern char *ctime();
1290 +//extern char *ctime();
1291 #ifdef __STDC__
1292 static void do_option_file(char *option_file);
1293 static void do_option(int option_value);
1294 @@ -298,9 +298,9 @@
1295 #endif
1296 static void doit();
1297 static void handle_signals();
1298 -static void handle_sighup();
1299 -static void handle_sigint();
1300 -static void handle_sigchld();
1301 +static void handle_sighup(int);
1302 +static void handle_sigint(int);
1303 +static void handle_sigchld(int);
1304 static void reset();
1305 static void audio_test();
1306
1307 @@ -309,7 +309,7 @@
1308
1309 #if defined(HAVE_CDROM) || defined(HAVE_HELPERS)
1310 #ifdef __STDC__
1311 -void rplayd_pipe_read( /* fd_set *rfds */ );
1312 +void rplayd_pipe_read(fd_set *rfds);
1313 #else
1314 void rplayd_pipe_read( /* fd_set *rfds */ );
1315 #endif
1316 @@ -2066,21 +2066,21 @@
1317
1318
1319 static void
1320 -handle_sighup()
1321 +handle_sighup(int notused)
1322 {
1323 report(REPORT_DEBUG, "received SIGHUP signal\n");
1324 need_reset();
1325 }
1326
1327 static void
1328 -handle_sigint()
1329 +handle_sigint(int notused)
1330 {
1331 report(REPORT_DEBUG, "received SIGINT signal\n");
1332 done(0);
1333 }
1334
1335 static void
1336 -handle_sigchld()
1337 +handle_sigchld(int notused)
1338 {
1339 pid_t pid;
1340 SPOOL *sp;
1341 Index: rplay/rplayd/sound.c
1342 ===================================================================
1343 --- rplay.orig/rplayd/sound.c 2025-09-13 10:31:31.054439335 +0200
1344 +++ rplay/rplayd/sound.c 2025-09-15 00:20:46.005797078 +0200
1345 @@ -2319,11 +2319,7 @@
1346 /* This routine is based on the unpack_input routine from
1347 Sun's CCITT ADPCM decoder. */
1348 static int
1349 -adpcm_unpack(si, b, code, bits)
1350 - SINDEX *si;
1351 - BUFFER *b;
1352 - unsigned char *code;
1353 - int bits;
1354 +adpcm_unpack(SINDEX *si, BUFFER *b, unsigned char *code, int bits)
1355 {
1356 unsigned char in_byte;
1357
1358 @@ -2348,11 +2344,11 @@
1359
1360 /* Uncompress the `data' buffers into 16-bit linear data. */
1361 static void
1362 -adpcm_decode(si, data, decode_routine, decode_bits)
1363 - SINDEX *si;
1364 - BUFFER *data;
1365 - int (*decode_routine) ();
1366 - int decode_bits;
1367 +adpcm_decode(SINDEX *si, BUFFER *data, int (*decode_routine)(int, int, struct g72x_state *), int decode_bits)
1368 +// SINDEX *si;
1369 +// BUFFER *data;
1370 +// int (*decode_routine) ();
1371 +// int decode_bits;
1372 {
1373 BUFFER *b = buffer_create();
1374 short *ptr;
1375 @@ -2390,9 +2386,7 @@
1376 #ifdef HAVE_GSM
1377 /* Uncompress the `data' buffers into 16-bit linear data. */
1378 static void
1379 -gsm_uncompress(si, data)
1380 - SINDEX *si;
1381 - BUFFER *data;
1382 +gsm_uncompress(SINDEX *si, BUFFER *data)
1383 {
1384 BUFFER *b = buffer_create();
1385 gsm_signal sample[160];
1386 Index: rplay/rplayd/spool.h
1387 ===================================================================
1388 --- rplay.orig/rplayd/spool.h 2025-09-07 11:22:11.455470614 +0200
1389 +++ rplay/rplayd/spool.h 2025-09-15 12:52:31.953127350 +0200
1390 @@ -44,6 +44,9 @@
1391 #define SPOOL_MIN_ID 1
1392 #define SPOOL_MAX_ID 999
1393
1394 +struct _spool;
1395 +typedef struct _spool SPOOL;
1396 +
1397 typedef struct _spool
1398 {
1399 struct _spool *next;
1400 @@ -69,7 +72,7 @@
1401 double sample_factor; /* Factor to increase the sample index by. */
1402 double oversample[2]; /* The current sample value when oversampling */
1403 double oversample_inc[2]; /* The delta to increase the oversample with */
1404 - int (*to_native) (); /* Convert curr_sound samples to native. */
1405 + int (*to_native) (SPOOL *, char *, int, int); /* Convert curr_sound samples to native. */
1406 int skip_count; /* skip curr_sound */
1407 int auto_pause; /* pause before play */
1408 int notify_position; /* notify clients needing position information */
1409 Index: rplay/rplayd/spool.c
1410 ===================================================================
1411 --- rplay.orig/rplayd/spool.c 2025-09-13 10:31:31.054439335 +0200
1412 +++ rplay/rplayd/spool.c 2025-09-15 14:35:37.230804354 +0200
1413 @@ -1249,7 +1249,7 @@
1414
1415 /* Convert rplay_audio_buf to the audio device format. */
1416 (*native_table[rplay_audio_format].from_native[RPLAY_AUDIO_BYTE_ORDER - 1])
1417 - (rplay_audio_buf, nsamples, rplay_audio_channels);
1418 + (sp, rplay_audio_buf, nsamples, rplay_audio_channels);
1419
1420 rplay_audio_size = nbytes;
1421 }
1422 Index: rplay/rplayd/timer.c
1423 ===================================================================
1424 --- rplay.orig/rplayd/timer.c 2025-09-13 10:31:31.054439335 +0200
1425 +++ rplay/rplayd/timer.c 2025-09-15 14:39:31.962911226 +0200
1426 @@ -40,7 +40,7 @@
1427 int timer_enabled = 0;
1428
1429 void
1430 -timer_update()
1431 +timer_update(int dummy)
1432 {
1433 #ifdef HAVE_OSS
1434 int bytes = rplay_audio_getospace_bytes();
1435 Index: rplay/rplayd/timer.h
1436 ===================================================================
1437 --- rplay.orig/rplayd/timer.h 2025-09-07 11:22:11.455470614 +0200
1438 +++ rplay/rplayd/timer.h 2025-09-15 14:43:21.295018682 +0200
1439 @@ -37,7 +37,7 @@
1440 extern int timer_enabled;
1441
1442 #ifdef __STDC__
1443 -extern void timer_update ();
1444 +extern void timer_update (int dummy);
1445 extern void timer_init ();
1446 extern void timer_block ();
1447 extern void timer_unblock ();
1448 @@ -45,7 +45,7 @@
1449 extern void timer_restart (int interval);
1450 extern void timer_stop ();
1451 #else
1452 -extern void timer_update ();
1453 +extern void timer_update (int dummy);
1454 extern void timer_init ();
1455 extern void timer_block ();
1456 extern void timer_unblock ();
1457 Index: rplay/rplayd/xhash.h
1458 ===================================================================
1459 --- rplay.orig/rplayd/xhash.h 2025-09-07 11:22:11.455470614 +0200
1460 +++ rplay/rplayd/xhash.h 2025-09-15 14:52:47.511276959 +0200
1461 @@ -37,7 +37,7 @@
1462 extern void xhash_replace (char *hash_key, char *data);
1463 extern void xhash_delete (char *hash_key);
1464 extern char *xhash_name (char *pathname);
1465 -extern void xhash_apply (char *(*func) ());
1466 +extern void xhash_apply (char *(*func) (const char *, void *));
1467 extern void xhash_die ();
1468 #else
1469 extern void xhash_init ( /* int hash_table_size */ );
1470 Index: rplay/rplayd/xhash.c
1471 ===================================================================
1472 --- rplay.orig/rplayd/xhash.c 2025-09-13 10:31:30.994439300 +0200
1473 +++ rplay/rplayd/xhash.c 2025-09-15 14:57:26.515365825 +0200
1474 @@ -148,7 +148,7 @@
1475
1476 #ifdef __STDC__
1477 void
1478 -xhash_apply(char *(*func) ())
1479 +xhash_apply(char *(*func) (const char *str, PTR val))
1480 #else
1481 void
1482 xhash_apply(func)