[packages/resource-agents] - one more types fix (for 64-bit off_t on x32); release 2

qboosh qboosh at pld-linux.org
Mon Feb 7 21:40:05 CET 2022


commit 2ca5a61405bbab6311fa26227e5665aa8c80fde5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Feb 7 21:41:36 2022 +0100

    - one more types fix (for 64-bit off_t on x32); release 2

 resource-agents-types.patch | 9 +++++++++
 resource-agents.spec        | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/resource-agents.spec b/resource-agents.spec
index 28b144f..9effab5 100644
--- a/resource-agents.spec
+++ b/resource-agents.spec
@@ -2,7 +2,7 @@ Summary:	Reusable cluster resource scripts
 Summary(pl.UTF-8):	Skrypty wielokrotnego użytku do obsługi zasobów klastrowych
 Name:		resource-agents
 Version:	4.10.0
-Release:	1
+Release:	2
 License:	GPL v2+, LGPL v2.1+
 Group:		Daemons
 #Source0Download: https://github.com/ClusterLabs/resource-agents/releases
diff --git a/resource-agents-types.patch b/resource-agents-types.patch
index 3d35418..b601130 100644
--- a/resource-agents-types.patch
+++ b/resource-agents-types.patch
@@ -14,6 +14,15 @@
  	}
  	/* Don't fret about real randomness */
  	srand(time(NULL) + getpid());
+@@ -74,7 +75,7 @@ static void *test_device(const char *dev
+ 	}
+ 
+ 	if (verbose) {
+-		printf("%s: reading from pos %ld\n", device, seek_spot);
++		printf("%s: reading from pos %"PRId64"\n", device, (int64_t)seek_spot);
+ 	}
+ 
+ 	res = read(device_fd, buffer, sizeof(buffer));
 @@ -84,7 +85,7 @@ static void *test_device(const char *dev
  		exit(-1);
  	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/resource-agents.git/commitdiff/2ca5a61405bbab6311fa26227e5665aa8c80fde5



More information about the pld-cvs-commit mailing list