From 1f4f260977a7fcd09fb71b83ee64c4d87b868441 Mon Sep 17 00:00:00 2001 From: Tomas Korbar Date: Mon, 15 Dec 2025 11:03:21 +0100 Subject: [PATCH] Add const qualifiers to fix build with ISO C23 Fix https://github.com/wolfcw/libfaketime/issues/524 Upstream: https://github.com/wolfcw/libfaketime/commit/dbe865dfdba0145d993d70b7fd4ec88b2f47554b Signed-off-by: Bernd Kuhls [Thomas: Rebased for version v0.9.10] Signed-off-by: Thomas Bonnefille --- src/libfaketime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfaketime.c b/src/libfaketime.c index e632395..955cf3c 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -2365,7 +2365,7 @@ int timespec_get(struct timespec *ts, int base) static void parse_ft_string(const char *user_faked_time) { struct tm user_faked_time_tm; - char * tmp_time_fmt; + const char * tmp_time_fmt; char * nstime_str; if (!strncmp(user_faked_time, user_faked_time_saved, BUFFERLEN)) -- 2.53.0