summaryrefslogtreecommitdiff
path: root/usr.bin/vi/ex/ex_print.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-03-11 06:58:01 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-03-11 06:58:01 +0000
commitd0404b721f4974d730b2175f03bee21d10fdecd1 (patch)
treef5ae7d1e6382cc9050d9960cd03926c1f2747b68 /usr.bin/vi/ex/ex_print.c
parent746279f1e389cf221d7b62b73e3a084f593e1e3c (diff)
Silence 39 warnings.
ok miod, otto
Diffstat (limited to 'usr.bin/vi/ex/ex_print.c')
-rw-r--r--usr.bin/vi/ex/ex_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/ex/ex_print.c b/usr.bin/vi/ex/ex_print.c
index 4ff0bc6af34..22dcbfff592 100644
--- a/usr.bin/vi/ex/ex_print.c
+++ b/usr.bin/vi/ex/ex_print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ex_print.c,v 1.6 2002/02/19 19:39:39 millert Exp $ */
+/* $OpenBSD: ex_print.c,v 1.7 2006/03/11 06:58:00 ray Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -119,7 +119,7 @@ ex_print(sp, cmdp, fp, tp, flags)
*/
if (LF_ISSET(E_C_HASH)) {
if (from <= 999999) {
- snprintf(buf, sizeof(buf), "%6ld ", from);
+ snprintf(buf, sizeof(buf), "%6lu ", (ulong)from);
p = buf;
} else
p = "TOOBIG ";