[packages/i810switch] - rel 3, fix type mismatch

baggins baggins at pld-linux.org
Thu Oct 1 09:27:15 CEST 2026


commit 91f36dfdc7306347c26f1d604723a7a12e477e4c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 1 09:26:56 2026 +0200

    - rel 3, fix type mismatch

 i810switch.spec |  4 +++-
 size_t.patch    | 30 ++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/i810switch.spec b/i810switch.spec
index e60a6cd..0313832 100644
--- a/i810switch.spec
+++ b/i810switch.spec
@@ -2,12 +2,13 @@ Summary:	i810switch - for switching the LCD and external VGA displays on and off
 Summary(pl.UTF-8):	i810switch - program do przełączania wyświetlacza LCD i zewnętrznego VGA
 Name:		i810switch
 Version:	0.6.5
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Applications
 Source0:	http://www16.plala.or.jp/mano-a-mano/i810switch/%{name}-%{version}.tar.gz
 # Source0-md5:	5ca07aee624589bdce5761c796e5f9a8
 Patch0:		%{name}-macbooksup.patch
+Patch1:		size_t.patch
 URL:		http://www16.plala.or.jp/mano-a-mano/i810switch.html	
 Requires:	pciutils
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,6 +24,7 @@ wyłączania wyświetlacza LCD oraz zewnętrznego VGA pod Linuksem.
 %prep
 %setup -q
 %patch -P0 -p0
+%patch -P1 -p1
 # Remove binaries supplied with sources:
 %{__make} clean
 
diff --git a/size_t.patch b/size_t.patch
new file mode 100644
index 0000000..e377405
--- /dev/null
+++ b/size_t.patch
@@ -0,0 +1,30 @@
+--- i810switch-0.6.5/i810switch.c~	2026-10-01 01:32:56.000000000 +0200
++++ i810switch-0.6.5/i810switch.c	2026-10-01 09:24:14.722021967 +0200
+@@ -244,7 +244,7 @@
+ 		i810_readl(par->mmio, I830_DSPBSTRIDE));
+ }
+ 
+-char *i810_chip(char **buff_ptr, int *len_ptr, FILE *pci_f, int* chiptype)
++char *i810_chip(char **buff_ptr, size_t *len_ptr, FILE *pci_f, int* chiptype)
+ {
+ 	int i;
+ 	char *p;
+@@ -297,7 +297,7 @@
+ 	return NULL;
+ }
+ 
+-unsigned long i810_addr(char **buff_ptr, int *len_ptr, FILE *pci_f)
++unsigned long i810_addr(char **buff_ptr, size_t *len_ptr, FILE *pci_f)
+ {
+ 	char *p;
+ 
+@@ -324,7 +324,8 @@
+ {
+ 	struct i810_par par;
+ 	unsigned long addr;
+-	int i, crt = -1, lcd = -1, probe = 0, err = 0, count = 0, chiptype, len = 0;
++	int i, crt = -1, lcd = -1, probe = 0, err = 0, count = 0, chiptype;
++	size_t len = 0;
+ 	FILE *pci_f;
+ 	char *buff = NULL;
+ 	char lspcistr[] = CMD_LSPCI " -v -d xxxx:xxxx";
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/i810switch.git/commitdiff/91f36dfdc7306347c26f1d604723a7a12e477e4c



More information about the pld-cvs-commit mailing list