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 | 506c330d35400bfcfbec6b5806e49c89c31c1e4e (patch) | |
tree | 3d29e4f77bca1afa28ad3f5f7ad6cbb75aeb190c /bin/1sh/error.h | |
parent | Replace __dead2 with __attribute__((noreturn)) (diff) | |
download | src-506c330d35400bfcfbec6b5806e49c89c31c1e4e.tar.gz src-506c330d35400bfcfbec6b5806e49c89c31c1e4e.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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/1sh/error.h b/bin/1sh/error.h index 964d98e8..0401598f 100644 --- a/bin/1sh/error.h +++ b/bin/1sh/error.h @@ -81,9 +81,9 @@ extern volatile sig_atomic_t intpending; void exraise(int) __attribute__((noreturn)); void onint(void) __attribute__((noreturn)); -void warning(const char *, ...) __printflike(1, 2); -void error(const char *, ...) __printf0like(1, 2) __attribute__((noreturn)); -void exerror(int, const char *, ...) __printf0like(2, 3) __attribute__((noreturn)); +void warning(const char *, ...) __attribute__((format(printf, 1, 2))); +void error(const char *, ...) __attribute__((format(printf, 1, 2))) __attribute__((noreturn)); +void exerror(int, const char *, ...) __attribute__((format(printf, 2, 3))) __attribute__((noreturn)); /* |