diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index 25313c0e7297..3fdd4099dd88 100644 --- a/usr.bin/xlint/lint1/decl.c +++ b/usr.bin/xlint/lint1/decl.c @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.51 2009/10/02 21:49:30 christos Exp $ */ +/* $NetBSD: decl.c,v 1.52 2011/05/24 12:49:11 joerg Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: decl.c,v 1.51 2009/10/02 21:49:30 christos Exp $"); +__RCSID("$NetBSD: decl.c,v 1.52 2011/05/24 12:49:11 joerg Exp $"); #endif #include @@ -881,7 +881,7 @@ length(type_t *tp, const char *name) switch (tp->t_tspec) { case FUNC: /* compiler takes size of function */ - LERROR(msgs[12]); + LERROR("%s", msgs[12]); /* NOTREACHED */ case STRUCT: case UNION: diff --git a/usr.bin/xlint/lint2/msg.c b/usr.bin/xlint/lint2/msg.c index 71d2bdac0a28..830d2f2fc76a 100644 --- a/usr.bin/xlint/lint2/msg.c +++ b/usr.bin/xlint/lint2/msg.c @@ -1,4 +1,4 @@ -/* $NetBSD: msg.c,v 1.10 2008/04/26 19:38:30 christos Exp $ */ +/* $NetBSD: msg.c,v 1.11 2011/05/24 12:49:11 joerg Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: msg.c,v 1.10 2008/04/26 19:38:30 christos Exp $"); +__RCSID("$NetBSD: msg.c,v 1.11 2011/05/24 12:49:11 joerg Exp $"); #endif #include @@ -131,7 +131,7 @@ mkpos(pos_t *posp) if (len > blen) buf = xrealloc(buf, blen = len); if (line != 0) { - (void)sprintf(buf, "%s%s(%hu)", + (void)sprintf(buf, "%s%s(%d)", fn, qm ? "?" : "", line); } else { (void)sprintf(buf, "%s", fn);