From 3dc840a56ad4a4e56480d5c419fc0bd7453feca3 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 1 Aug 2024 12:37:24 +0200 Subject: [PATCH] lib/string/strftime.h: STRFTIME(): Tighten macro definition strftime(3) is not a variadic function; there's exactly one argument after the format string. Signed-off-by: Alejandro Colomar --- lib/string/strftime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string/strftime.h b/lib/string/strftime.h index bebb31a46..578e5f67d 100644 --- a/lib/string/strftime.h +++ b/lib/string/strftime.h @@ -13,7 +13,7 @@ #include "sizeof.h" -#define STRFTIME(dst, fmt, ...) strftime(dst, NITEMS(dst), fmt, __VA_ARGS__) +#define STRFTIME(dst, fmt, tm) strftime(dst, NITEMS(dst), fmt, tm) #endif // include guard -- 2.47.3