File: 0003-Fix-handle_sigterm_pid1-signature.patch

package info (click to toggle)
beanstalkd 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 628 kB
  • sloc: ansic: 7,522; sh: 390; makefile: 112; ruby: 14
file content (27 lines) | stat: -rw-r--r-- 549 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
From: Apollon Oikonomopoulos <apoikos@debian.org>
Date: Mon, 17 Mar 2025 10:37:46 +0200
Subject: Fix handle_sigterm_pid1() signature

This is a signal handler, so it should accept a signal number as the
only argument.

Fixes FTBFS with GCC 15

Closes: #1096364
---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 7e7dc07..20277ff 100644
--- a/main.c
+++ b/main.c
@@ -37,7 +37,7 @@ su(const char *user)
 }
 
 static void
-handle_sigterm_pid1()
+handle_sigterm_pid1(int _unused)
 {
     exit(143);
 }