summaryrefslogtreecommitdiff
path: root/net-misc/smbc/files/0001-Fix-signal-handlers.patch
blob: 3e4ece3bef0c384692e9c8f814999b24005df28b (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
From 1d9dc54aea5a36aa43ce3bb5d5a013121fbd25ab Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Wed, 12 Feb 2025 16:04:02 +0000
Subject: [PATCH 1/2] Fix signal handlers

They need to take an argument but we don't use it.

Signed-off-by: Sam James <sam@gentoo.org>
---
 src/smbc.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/smbc.c b/src/smbc.c
index 41a3d28..86349d0 100644
--- a/src/smbc.c
+++ b/src/smbc.c
@@ -251,9 +251,9 @@ void RwinRedrawWithData();
 void RcompareTwoIndexFile(int RfdNew, int RfdOld, int RfdMessage);
 int RtryDownloadUpload();
 void RtryLockFileAndCreateIndexFile();
-void RsigAlarm();
-void RsigTerm();
-void RsigSEGV();
+void RsigAlarm(int unused);
+void RsigTerm(int unused);
+void RsigSEGV(int unused);
 char *RgetSmallPath(char *Rhost);
 
 //-------------------------------------------------------------
@@ -1196,7 +1196,7 @@ RmanageList()
     {
       if (!RdownloadListTmp) {
         RDBG("smbc: RmanageList RpaintList - error expected next record\n"); 
-        RsigTerm();
+        RsigTerm(0);
       }
       mvwhline(RwinCol1, ++Rk, 0, 32, 1);
       mvwhline(RwinCol2, Rk, 0, 32, 1);
@@ -1354,7 +1354,7 @@ RmanageList()
   }
 
   void 
-  RsigAlarmManageWindow() 
+  RsigAlarmManageWindow(int unused) 
   {
     RDBG("RmanageList : RsigAlarmManageWindow alarm\n");
     RdoWindowResizeDownloadList();
@@ -5543,7 +5543,7 @@ RcreateFindListIndex(int Isave, char *Igroup, char *Ihost, char *Ipath, char *Id
 }
 
 void 
-RsigTerm()
+RsigTerm(int unused)
 {
   int Ri;
 
@@ -5602,7 +5602,7 @@ RsigTerm()
 }
 
 void 
-RsigCHLD()
+RsigCHLD(int unused)
 {
   waitpid(RchildId, NULL, WNOHANG);
 }
@@ -6393,7 +6393,7 @@ RsendWinpopupInput(char *RgroupInput)
 }
 
 void 
-RsigSEGV()
+RsigSEGV(int unused)
 {
   int Rres = errno;
 
@@ -6404,7 +6404,7 @@ RsigSEGV()
   RDBG("\n");
   RDBG("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
   Rerror = 1;
-  RsigTerm();
+  RsigTerm(0);
   exit(Rres);
 }
 
@@ -6819,7 +6819,7 @@ RtryDownloadUpload()
 }
 
 void 
-RsigAlarm()
+RsigAlarm(int unused)
 {
   char RinsertChar = 1;
 
@@ -8220,7 +8220,7 @@ RDBG("smbc: main 100\n");
  Rfree(RfileNameMessagePrim);
  Rfree(RsmbcLockFile);
  RDBG("----stop 2----\n");
- RsigTerm();
+ RsigTerm(0);
  RfreeDebug();
  return(0);
 }
-- 
2.48.1