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/error.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/error.h')
-rw-r--r-- | bin/sh/error.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/error.h b/bin/sh/error.h index b86e177..938ef91 100644 --- a/bin/sh/error.h +++ b/bin/sh/error.h @@ -91,8 +91,8 @@ extern volatile sig_atomic_t intpending; void exraise __P((int)); void onint __P((void)); -void error __P((char *, ...)); -void exerror __P((int, char *, ...)); +void error __P((const char *, ...)) __printf0like(1, 2); +void exerror __P((int, const char *, ...)) __printf0like(2, 3); char *errmsg __P((int, int)); |