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/rcp | |
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/rcp')
-rw-r--r-- | bin/rcp/extern.h | 2 | ||||
-rw-r--r-- | bin/rcp/rcp.c | 3 |
2 files changed, 3 insertions, 2 deletions
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 *[])); |