diff options
author | June McEnroe <june@causal.agency> | 2020-06-07 16:30:34 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-06-08 16:46:02 -0400 |
commit | fee59c2271f1d403238ca7da908a537c53a5e264 (patch) | |
tree | 05c2732832a62d4c2c757a1648e352e3797a2fed /bin/1sh/error.c | |
parent | Replace __dead2 with __attribute__((noreturn)) (diff) | |
download | src-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 '')
-rw-r--r-- | bin/1sh/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/1sh/error.c b/bin/1sh/error.c index 62d406f5..57c10fae 100644 --- a/bin/1sh/error.c +++ b/bin/1sh/error.c @@ -67,7 +67,7 @@ volatile sig_atomic_t suppressint; volatile sig_atomic_t intpending; -static void exverror(int, const char *, va_list) __printf0like(2, 0) __attribute__((noreturn)); +static void exverror(int, const char *, va_list) __attribute__((format(printf, 2, 0))) __attribute__((noreturn)); /* * Called to raise an exception. Since C doesn't include exceptions, we |