[packages/perl-Authen-Smb] add type fixes

atler atler at pld-linux.org
Sat Aug 15 18:35:35 CEST 2026


commit ec6f0b4ecc4d03799a0214da44e74a162701cd6d
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 15 18:34:58 2026 +0200

    add type fixes

 perl-Authen-Smb.spec |  2 ++
 types.patch          | 30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
---
diff --git a/perl-Authen-Smb.spec b/perl-Authen-Smb.spec
index eddea0d..d85b7c5 100644
--- a/perl-Authen-Smb.spec
+++ b/perl-Authen-Smb.spec
@@ -15,6 +15,7 @@ Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version
 # Source0-md5:	97d8aee872160eeabd0c08a7b0985216
 Patch0:		includes.patch
 Patch1:		prototypes.patch
+Patch2:		types.patch
 URL:		http://search.cpan.org/dist/Authen-Smb/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -36,6 +37,7 @@ uwierzytelniania. Do określenia serwerów należy używać nazw NT.
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..8891689
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,30 @@
+--- Authen-Smb-0.91/smbval/rfcnb-io.c.orig	1999-06-07 03:54:22.000000000 +0200
++++ Authen-Smb-0.91/smbval/rfcnb-io.c	2026-08-15 18:27:42.444122266 +0200
+@@ -59,14 +59,14 @@
+   if (RFCNB_Timeout > 0) { /* Set up handler to ignore but not restart */
+ 
+ #ifndef SA_RESTART
+-    invec.sv_handler = (void (*)())rfcnb_alarm;
++    invec.sv_handler = 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 = rfcnb_alarm;
+     sigemptyset(&inact.sa_mask);
+     inact.sa_flags = 0;    /* Don't restart */
+ 
+--- Authen-Smb-0.91/smbval/rfcnb-util.c.orig	1999-06-07 03:54:22.000000000 +0200
++++ Authen-Smb-0.91/smbval/rfcnb-util.c	2026-08-15 18:33:40.568935772 +0200
+@@ -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 */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Authen-Smb.git/commitdiff/ec6f0b4ecc4d03799a0214da44e74a162701cd6d



More information about the pld-cvs-commit mailing list