File: gcc-15.patch

package info (click to toggle)
scanssh 2.1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: ansic: 4,708; sh: 2,687; makefile: 19
file content (21 lines) | stat: -rw-r--r-- 550 bytes parent folder | download
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;