summaryrefslogtreecommitdiffstats
path: root/usr.bin/xlint
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-07-05 10:08:25 +0000
committerkris <kris@FreeBSD.org>2001-07-05 10:08:25 +0000
commit377ac4698579ade5d4127152ce7fa45453c9b433 (patch)
treee778272da13fe989b97aa5a9f54524e473ad8162 /usr.bin/xlint
parentcc4212cf2cb9ad92fcf05381c4e72b0c947b229f (diff)
downloadFreeBSD-src-377ac4698579ade5d4127152ce7fa45453c9b433.zip
FreeBSD-src-377ac4698579ade5d4127152ce7fa45453c9b433.tar.gz
Mark a function as __printflike() and fix a non-exploitable format string
warning. MFC after: 1 week
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r--usr.bin/xlint/lint1/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c
index c88a5a8..639c123 100644
--- a/usr.bin/xlint/lint1/decl.c
+++ b/usr.bin/xlint/lint1/decl.c
@@ -843,7 +843,7 @@ length(tp, name)
switch (tp->t_tspec) {
case FUNC:
/* compiler takes size of function */
- lerror(msgs[12]);
+ lerror("%s", msgs[12]);
/* NOTREACHED */
case STRUCT:
case UNION:
OpenPOWER on IntegriCloud