]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/string/strftime.h: STRFTIME(): Tighten macro definition
authorAlejandro Colomar <alx@kernel.org>
Thu, 1 Aug 2024 10:37:24 +0000 (12:37 +0200)
committerSerge Hallyn <serge@hallyn.com>
Fri, 23 Aug 2024 03:51:57 +0000 (22:51 -0500)
strftime(3) is not a variadic function; there's exactly one argument
after the format string.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/string/strftime.h

index bebb31a4680585f2c3c1974194c2f658987b5e6c..578e5f67db8768a76262b34c99172e0abcfee22a 100644 (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