From b6da0fca774d229c4776e41d019373d1ec0df7ab Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 17 Apr 2001 07:46:38 +0000 Subject: -Wnon-const-format sweep: make format strings const char *'s, add __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit --- bin/sh/error.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/sh/error.h') 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)); -- cgit v1.1