diff options
author | kris <kris@FreeBSD.org> | 2001-04-17 07:46:38 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-04-17 07:46:38 +0000 |
commit | b6da0fca774d229c4776e41d019373d1ec0df7ab (patch) | |
tree | 90405fcc57a8301012105d9d0facc3ded561a0f6 /bin/sh/output.h | |
parent | 9acb56a18a243e153f49b5fc26f3b3050492b013 (diff) | |
download | FreeBSD-src-b6da0fca774d229c4776e41d019373d1ec0df7ab.zip FreeBSD-src-b6da0fca774d229c4776e41d019373d1ec0df7ab.tar.gz |
-Wnon-const-format sweep: make format strings const char *'s, add
__printflike()/__printf0like() to function prototypes, as appropriate.
Reviewed by: bde, -audit
Diffstat (limited to 'bin/sh/output.h')
-rw-r--r-- | bin/sh/output.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/sh/output.h b/bin/sh/output.h index f99db6b..425b49f 100644 --- a/bin/sh/output.h +++ b/bin/sh/output.h @@ -68,11 +68,11 @@ void emptyoutbuf __P((struct output *)); void flushall __P((void)); void flushout __P((struct output *)); void freestdout __P((void)); -void outfmt __P((struct output *, char *, ...)); -void out1fmt __P((char *, ...)); -void dprintf __P((char *, ...)); -void fmtstr __P((char *, int, char *, ...)); -void doformat __P((struct output *, char *, va_list)); +void outfmt __P((struct output *, const char *, ...)) __printflike(2, 3); +void out1fmt __P((const char *, ...)) __printflike(1, 2); +void dprintf __P((const char *, ...)) __printflike(1, 2); +void fmtstr __P((char *, int, const char *, ...)) __printflike(3, 4); +void doformat __P((struct output *, const char *, va_list)) __printflike(2, 0); int xwrite __P((int, char *, int)); int xioctl __P((int, unsigned long, char *)); |