File: prototypes.patch

package info (click to toggle)
ucspi-unix 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 452 kB
  • sloc: ansic: 2,606; python: 535; makefile: 14; sh: 1
file content (57 lines) | stat: -rw-r--r-- 991 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
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
Description: Fix FTBFS with GCC 15 by fixing function prototypes
Bug-Debian: https://bugs.debian.org/1098026
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2025-09-23

--- a/trypeercred.c
+++ b/trypeercred.c
@@ -2,7 +2,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
-int main()
+int main(void)
 {
   struct ucred peer;
   socklen_t optlen = sizeof(peer);
--- a/trywaitp.c
+++ b/trywaitp.c
@@ -1,7 +1,7 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-int main()
+int main(void)
 {
   waitpid(0,0,0);
   return 0;
--- a/unixserver.c
+++ b/unixserver.c
@@ -226,7 +226,7 @@
   command_argv = argv + 1;
 }
 
-int make_socket()
+int make_socket(void)
 {
   struct sockaddr_un* saddr;
   int s;
@@ -307,7 +307,7 @@
   }
 }
 
-void handle_children()
+void handle_children(int sig)
 {
   pid_t pid;
   int status;
@@ -334,7 +334,7 @@
   log_child_exit(pid, status);
 }
 
-void handle_intr()
+void handle_intr(int sig)
 {
   if(opt_delete)
     unlink(opt_socket);