[packages/ogdi] - use correct type for time manipulation

baggins baggins at pld-linux.org
Fri Dec 6 11:00:56 CET 2024


commit d9055f2df87c5d7507af6982e0318883ff082659
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Dec 6 09:54:38 2024 +0100

    - use correct type for time manipulation

 ogdi.spec  |  2 ++
 time.patch | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)
---
diff --git a/ogdi.spec b/ogdi.spec
index fde525b..3541e04 100644
--- a/ogdi.spec
+++ b/ogdi.spec
@@ -18,6 +18,7 @@ Source1:	http://ogdi.sourceforge.net/ogdi.pdf
 # Source1-md5:	029a8cdcd36bee73df92196ee769040e
 Patch0:		nullptr.patch
 Patch1:		%{name}-format.patch
+Patch2:		time.patch
 URL:		http://ogdi.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	expat-devel
@@ -77,6 +78,7 @@ Interfejs Tcl do OGDI.
 %setup -q
 %patch -P 0 -p1
 %patch -P 1 -p1
+%patch -P 2 -p1
 
 cp -f %{SOURCE1} .
 
diff --git a/time.patch b/time.patch
new file mode 100644
index 0000000..37cba43
--- /dev/null
+++ b/time.patch
@@ -0,0 +1,20 @@
+--- ogdi-4.1.1/ogdi/gltpd/asyncsvr.c~	2024-02-01 16:10:47.000000000 +0100
++++ ogdi-4.1.1/ogdi/gltpd/asyncsvr.c	2024-12-06 09:52:26.346290322 +0100
+@@ -80,7 +80,7 @@
+ 
+ #define COMTIMEOUT 900
+ 
+-long timecount;
++time_t timecount;
+ 
+ static void dispatchno_1();
+ extern void ecsprog_1();
+@@ -533,7 +533,7 @@
+   struct timeval timeout;
+   xdrproc_t xdr_argument;
+   /*xdrproc_t xdr_result;*/
+-  long currenttime;
++  time_t currenttime;
+   
+   timeout.tv_sec = COMTIMEOUT;
+   timeout.tv_usec = 0;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ogdi.git/commitdiff/d9055f2df87c5d7507af6982e0318883ff082659



More information about the pld-cvs-commit mailing list