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/rcp/extern.h | 2 +- bin/rcp/rcp.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/rcp') diff --git a/bin/rcp/extern.h b/bin/rcp/extern.h index 5081c9d..06e639b 100644 --- a/bin/rcp/extern.h +++ b/bin/rcp/extern.h @@ -46,6 +46,6 @@ char *colon __P((char *)); void lostconn __P((int)); void nospace __P((void)); int okname __P((char *)); -void run_err __P((const char *, ...)); +void run_err __P((const char *, ...)) __printflike(1, 2); int susystem __P((char *, int)); void verifydir __P((char *)); diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index a1534ea..8f413bd 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -106,10 +106,11 @@ char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */ #ifdef KERBEROS int kerberos __P((char **, char *, char *, char *)); -void oldw __P((const char *, ...)); +void oldw __P((const char *, ...)) __printflike(1, 2); #endif int response __P((void)); void rsource __P((char *, struct stat *)); +void run_err __P((const char *, ...)) __printflike(1, 2); void sink __P((int, char *[])); void source __P((int, char *[])); void tolocal __P((int, char *[])); -- cgit v1.1