blob: 987c7e43e643eadc5d4b9e0cf65a92e7a5d9d58e (
plain)
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
|
From: Michael Biebl <biebl@debian.org>
Date: Wed, 10 Apr 2024 19:26:05 +0200
Subject: mmkubernetes bugfix: use correct type for lastBusyTime
We assign time_t now to lastBusyTime, which is not necessarily an int.
On 32bit architectures, time_t can be 64bit.
See https://wiki.debian.org/ReleaseGoals/64bit-time
---
contrib/mmkubernetes/mmkubernetes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/mmkubernetes/mmkubernetes.c b/contrib/mmkubernetes/mmkubernetes.c
index 525962e..a9d7979 100644
--- a/contrib/mmkubernetes/mmkubernetes.c
+++ b/contrib/mmkubernetes/mmkubernetes.c
@@ -123,7 +123,7 @@ static struct cache_s {
struct hashtable *mdHt;
struct hashtable *nsHt;
pthread_mutex_t *cacheMtx;
- int lastBusyTime; /* when we got the last busy response from kubernetes */
+ time_t lastBusyTime; /* when we got the last busy response from kubernetes */
time_t expirationTime; /* if cache expiration checking is enable, time to check for expiration */
} **caches;
|