From: Karel Zak Date: Fri, 18 Jun 2021 14:33:16 +0000 (+0200) Subject: include/strutils: fix __format__attribute X-Git-Tag: v2.38-rc1~434 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40b55f5a29343cd477688676f094f10750e3f2de;p=thirdparty%2Futil-linux.git include/strutils: fix __format__attribute Reported-by: Jan Pazdziora Signed-off-by: Karel Zak --- diff --git a/include/strutils.h b/include/strutils.h index a62f724933..e75a2f0e17 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -373,7 +373,7 @@ static inline void strrem(char *s, int rem) extern char *strnappend(const char *s, const char *suffix, size_t b); extern char *strappend(const char *s, const char *suffix); extern char *strfappend(const char *s, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 0))); + __attribute__ ((__format__ (__printf__, 2, 3))); extern const char *split(const char **state, size_t *l, const char *separator, int quoted); extern int skip_fline(FILE *fp);