summaryrefslogtreecommitdiff
path: root/usr.bin/vi/ex/ex_visual.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_visual.c
parent746279f1e389cf221d7b62b73e3a084f593e1e3c (diff)
Silence 39 warnings.
ok miod, otto
Diffstat (limited to 'usr.bin/vi/ex/ex_visual.c')
-rw-r--r--usr.bin/vi/ex/ex_visual.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vi/ex/ex_visual.c b/usr.bin/vi/ex/ex_visual.c
index be9aeb81d3b..74bc5f8846e 100644
--- a/usr.bin/vi/ex/ex_visual.c
+++ b/usr.bin/vi/ex/ex_visual.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ex_visual.c,v 1.6 2002/02/16 21:27:57 millert Exp $ */
+/* $OpenBSD: ex_visual.c,v 1.7 2006/03/11 06:58:00 ray Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -83,9 +83,9 @@ ex_visual(sp, cmdp)
if (FL_ISSET(cmdp->iflags, E_C_COUNT))
len = snprintf(buf, sizeof(buf),
- "%luz%c%lu", sp->lno, pos, cmdp->count);
+ "%luz%c%lu", (ulong)sp->lno, pos, cmdp->count);
else
- len = snprintf(buf, sizeof(buf), "%luz%c", sp->lno, pos);
+ len = snprintf(buf, sizeof(buf), "%luz%c", (ulong)sp->lno, pos);
if (len >= sizeof(buf))
len = sizeof(buf) - 1;
(void)v_event_push(sp, NULL, buf, len, CH_NOMAP | CH_QUOTED);