All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Avoid year-2038-problem
@ 2026-05-11 11:05 David Disseldorp
  0 siblings, 0 replies; only message in thread
From: David Disseldorp @ 2026-05-11 11:05 UTC (permalink / raw)
  To: autofs; +Cc: Bernhard M. Wiedemann, David Disseldorp

From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>

This patch was done while reviewing potential year-2038 issues in openSUSE.

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Reviewed-by: David Disseldorp <ddiss@suse.de>
---
 daemon/state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/state.c b/daemon/state.c
index 317b8ca9..e16c0703 100644
--- a/daemon/state.c
+++ b/daemon/state.c
@@ -514,7 +514,7 @@ static unsigned int st_readmap(struct autofs_point *ap)
 	pthread_t thid;
 	struct readmap_args *ra;
 	int status;
-	int now = monotonic_time(NULL);
+	time_t now = monotonic_time(NULL);
 
 	debug(ap->logopt, "state %d path %s", ap->state, ap->path);
 
-- 
2.51.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-11 11:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 11:05 [PATCH] Avoid year-2038-problem David Disseldorp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.