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/mknodes.c | |
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/mknodes.c')
-rw-r--r-- | bin/sh/mknodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/mknodes.c b/bin/sh/mknodes.c index 007cb32..6fea8ec 100644 --- a/bin/sh/mknodes.c +++ b/bin/sh/mknodes.c @@ -112,7 +112,7 @@ static void indent __P((int, FILE *)); static int nextfield __P((char *)); static void skipbl __P((void)); static int readline __P((void)); -static void error __P((const char *, ...)); +static void error __P((const char *, ...)) __printf0like(1, 2); static char *savestr __P((const char *)); @@ -451,7 +451,7 @@ error(va_alist) #ifdef __STDC__ va_start(va, msg); #else - char *msg; + const char *msg; va_start(va); msg = va_arg(va, char *); #endif |