summary refs log tree commit diff
path: root/bin/1sh/mknodes.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-06-07 16:30:34 -0400
committerJune McEnroe <june@causal.agency>2020-06-08 16:46:02 -0400
commitfee59c2271f1d403238ca7da908a537c53a5e264 (patch)
tree05c2732832a62d4c2c757a1648e352e3797a2fed /bin/1sh/mknodes.c
parentReplace __dead2 with __attribute__((noreturn)) (diff)
downloadsrc-fee59c2271f1d403238ca7da908a537c53a5e264.tar.gz
src-fee59c2271f1d403238ca7da908a537c53a5e264.zip
Replace __printflike with __attribute__((format(printf, ...)))
sed -E 's/__printf0?like[(]([^,]+), ([^)]+)[)]/__attribute__((format(printf, \1, \2)))/'
Diffstat (limited to 'bin/1sh/mknodes.c')
-rw-r--r--bin/1sh/mknodes.c2
1 files changed, 1 insertions, 1 deletions
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 *);