File: 0003-fixed-a-signal-handler-prototype-for-sig_save.patch

package info (click to toggle)
sc 7.16-1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,116 kB
  • sloc: ansic: 18,674; yacc: 1,334; sh: 1,127; makefile: 187; lisp: 99; sed: 4
file content (28 lines) | stat: -rw-r--r-- 629 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
From 5da3ace039ca70b13327d81e55db83815a191904 Mon Sep 17 00:00:00 2001
From: Andreas Baumann <mail@andreasbaumann.cc>
Date: Fri, 16 May 2025 07:35:34 +0200
Subject: fixed a signal handler prototype for sig_save

---
 lex.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lex.c b/lex.c
index 3218d1c..3d3b53e 100644
--- a/lex.c
+++ b/lex.c
@@ -195,9 +195,9 @@ yylex(void)
 	}
     } else if ((*p == '.') || isdigit((int)*p)) {
 #ifdef SIGVOID
-	void (*sig_save)();
+	void (*sig_save)(int signum);
 #else
-	int (*sig_save)();
+	int (*sig_save)(int signum);
 #endif
 	double v = 0.0;
 	int temp;
-- 
2.30.2