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 <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-08-01 12:37:24 +02:00
committed by Serge Hallyn
parent 60da937c2f
commit 3dc840a56a

View File

@@ -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