summaryrefslogtreecommitdiff
path: root/usr.bin/xlint/lint1
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-04-27 20:46:45 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-04-27 20:46:45 +0000
commit46a542c6b21c20fce3a7a32f575f993778f10bde (patch)
tree534cd69be59dfefd91a2c1dd1aceacf241c7dbd0 /usr.bin/xlint/lint1
parent8bd9bdcf958600e597c7ae35bcce0b923f82a3c4 (diff)
print a quad as %lld, not %d
Diffstat (limited to 'usr.bin/xlint/lint1')
-rw-r--r--usr.bin/xlint/lint1/err.c6
-rw-r--r--usr.bin/xlint/lint1/tree.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/xlint/lint1/err.c b/usr.bin/xlint/lint1/err.c
index f1fe65e765c..565fcdcccdd 100644
--- a/usr.bin/xlint/lint1/err.c
+++ b/usr.bin/xlint/lint1/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.24 2006/04/25 18:41:19 cloder Exp $ */
+/* $OpenBSD: err.c,v 1.25 2006/04/27 20:46:44 otto Exp $ */
/* $NetBSD: err.c,v 1.8 1995/10/02 17:37:00 jpo Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: err.c,v 1.24 2006/04/25 18:41:19 cloder Exp $";
+static char rcsid[] = "$OpenBSD: err.c,v 1.25 2006/04/27 20:46:44 otto Exp $";
#endif
/* number of errors found */
@@ -364,7 +364,7 @@ const char *msgs[] = {
"static variable %s set but not used", /* 307 */
"", /* 308 */
"extra bits set to 0 in conversion of '%s' to '%s', op %s", /* 309 */
- "right shift of %d-bit quantity by %d bits", /* 310 */
+ "right shift of %d-bit quantity by %lld bits", /* 310 */
"case ranges are illegal in ANSI C", /* 311 */
"suspicious operator for sizeof: %s", /* 312 */
"conversion of %s() return value from '%s' to '%s'", /* 313 */
diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c
index 963c3847029..7729f9a0950 100644
--- a/usr.bin/xlint/lint1/tree.c
+++ b/usr.bin/xlint/lint1/tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tree.c,v 1.37 2006/04/27 20:37:33 otto Exp $ */
+/* $OpenBSD: tree.c,v 1.38 2006/04/27 20:46:44 otto Exp $ */
/* $NetBSD: tree.c,v 1.12 1995/10/02 17:37:57 jpo Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: tree.c,v 1.37 2006/04/27 20:37:33 otto Exp $";
+static char rcsid[] = "$OpenBSD: tree.c,v 1.38 2006/04/27 20:46:44 otto Exp $";
#endif
#include <stdlib.h>
@@ -940,7 +940,7 @@ typeok(op_t op, farg_t *farg, tnode_t *ln, tnode_t *rn)
}
}
- /* right shift of %d-bit quantity by %d bits */
+ /* right shift of %d-bit quantity by %lld bits */
if (rn->tn_op == CON && size(olt) <= rn->tn_val->v_quad)
warning(310, size(olt), rn->tn_val->v_quad);