File: fix-gcc15-build.patch

package info (click to toggle)
libauthen-smb-perl 0.91-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 452 kB
  • sloc: ansic: 2,746; perl: 48; makefile: 3
file content (66 lines) | stat: -rw-r--r-- 2,314 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
58
59
60
61
62
63
64
65
66
From: Victor Seva <vseva@debian.org>
Date: Thu, 11 Sep 2025 22:38:28 +0200
Subject: fix gcc15 build

---
 smbval/rfcnb-io.c   | 4 ++--
 smbval/rfcnb-util.c | 2 +-
 smbval/session.c    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/smbval/rfcnb-io.c b/smbval/rfcnb-io.c
index 4692413..2bc7d60 100644
--- a/smbval/rfcnb-io.c
+++ b/smbval/rfcnb-io.c
@@ -59,14 +59,14 @@ int RFCNB_Set_Timeout(int seconds)
   if (RFCNB_Timeout > 0) { /* Set up handler to ignore but not restart */
 
 #ifndef SA_RESTART
-    invec.sv_handler = (void (*)())rfcnb_alarm;
+    invec.sv_handler = (void (*)(int))rfcnb_alarm;
     invec.sv_mask = 0;
     invec.sv_flags = SV_INTERRUPT;
 
     if (sigvec(SIGALRM, &invec, &outvec)  < 0)
       return(-1);
 #else
-    inact.sa_handler = (void (*)())rfcnb_alarm;
+    inact.sa_handler = (void (*)(int))rfcnb_alarm;
     sigemptyset(&inact.sa_mask);
     inact.sa_flags = 0;    /* Don't restart */
 
diff --git a/smbval/rfcnb-util.c b/smbval/rfcnb-util.c
index 2169472..61b9f72 100644
--- a/smbval/rfcnb-util.c
+++ b/smbval/rfcnb-util.c
@@ -32,7 +32,7 @@
 #include "rfcnb-util.h"
 #include "rfcnb-io.h"
 
-extern void (*Prot_Print_Routine)(); /* Pointer to protocol print routine */
+extern void (*Prot_Print_Routine)(FILE *, int, struct RFCNB_Pkt *, int, int); /* Pointer to protocol print routine */
 
 /* Convert name and pad to 16 chars as needed */
 /* Name 1 is a C string with null termination, name 2 may not be */
diff --git a/smbval/session.c b/smbval/session.c
index 9a1fa44..2b297e5 100644
--- a/smbval/session.c
+++ b/smbval/session.c
@@ -41,7 +41,7 @@ int RFCNB_Stats[RFCNB_MAX_STATS];
 
 int RFCNB_Free_Pkt(struct RFCNB_Pkt *pkt);
 
-void (*Prot_Print_Routine)() = NULL;      /* Pointer to print routine */
+void (*Prot_Print_Routine)(FILE *, int, struct RFCNB_Pkt *, int, int) = NULL;      /* Pointer to print routine */
 
 /* Set up a session with a remote name. We are passed Called_Name as a
    string which we convert to a NetBIOS name, ie space terminated, up to
@@ -364,7 +364,7 @@ int RFCNB_Get_Error_Msg(int code, char *msg_buf, int len)
 
 /* Register a higher level protocol print routine */
 
-void RFCNB_Register_Print_Routine(void (*fn)())
+void RFCNB_Register_Print_Routine(void (*fn)(FILE *, int, struct RFCNB_Pkt *, int, int))
 
 {