summaryrefslogtreecommitdiffstats
path: root/bin/sh/mknodes.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-04-17 07:46:38 +0000
committerkris <kris@FreeBSD.org>2001-04-17 07:46:38 +0000
commitb6da0fca774d229c4776e41d019373d1ec0df7ab (patch)
tree90405fcc57a8301012105d9d0facc3ded561a0f6 /bin/sh/mknodes.c
parent9acb56a18a243e153f49b5fc26f3b3050492b013 (diff)
downloadFreeBSD-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.c4
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
OpenPOWER on IntegriCloud