1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-06-13
Bug-Debian: https://bugs.debian.org/1097851
Description: Modern prototype syntax to build with gcc-15
Forwarded: https://github.com/ofalk/scanssh/issues/11
--- a/atomicio.c
+++ b/atomicio.c
@@ -34,11 +34,7 @@
* ensure all of data on socket comes through. f==read || f==write
*/
ssize_t
-atomicio(f, fd, _s, n)
- ssize_t (*f) ();
- int fd;
- void *_s;
- size_t n;
+atomicio(ssize_t (*f)(int, void *, size_t), int fd, void *_s, size_t n)
{
char *s = _s;
ssize_t res, pos = 0;
|