From 506c330d35400bfcfbec6b5806e49c89c31c1e4e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 7 Jun 2020 16:30:34 -0400 Subject: Replace __printflike with __attribute__((format(printf, ...))) sed -E 's/__printf0?like[(]([^,]+), ([^)]+)[)]/__attribute__((format(printf, \1, \2)))/' --- bin/1sh/mknodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/1sh/mknodes.c') diff --git a/bin/1sh/mknodes.c b/bin/1sh/mknodes.c index e5eacb14..9ec4dfbd 100644 --- a/bin/1sh/mknodes.c +++ b/bin/1sh/mknodes.c @@ -104,7 +104,7 @@ static void indent(int, FILE *); static int nextfield(char *); static void skipbl(void); static int readline(FILE *); -static void error(const char *, ...) __printf0like(1, 2) __attribute__((noreturn)); +static void error(const char *, ...) __attribute__((format(printf, 1, 2))) __attribute__((noreturn)); static char *savestr(const char *); -- cgit 1.4.1