Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.bin/vi/ex Pull up revision 1.8 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/eb5d80ef97b8
branches:  netbsd-1-4
changeset: 471100:eb5d80ef97b8
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 16:33:03 2000 +0000

description:
Pull up revision 1.8 (requested by he):
  Format string cleanup.

diffstat:

 usr.bin/vi/ex/ex_print.c  |  5 +++--
 usr.bin/vi/ex/ex_visual.c |  6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 899cf8b929a7 -r eb5d80ef97b8 usr.bin/vi/ex/ex_print.c
--- a/usr.bin/vi/ex/ex_print.c  Thu Oct 19 16:33:01 2000 +0000
+++ b/usr.bin/vi/ex/ex_print.c  Thu Oct 19 16:33:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex_print.c,v 1.7 1998/01/09 08:07:57 perry Exp $       */
+/*     $NetBSD: ex_print.c,v 1.7.2.1 2000/10/19 16:33:03 he Exp $      */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -124,7 +124,8 @@
                 */
                if (LF_ISSET(E_C_HASH)) {
                        if (from <= 999999) {
-                               snprintf(buf, sizeof(buf), "%6ld  ", from);
+                               snprintf(buf, sizeof(buf), "%6ld  ", 
+                                        (long)from);
                                p = buf;
                        } else
                                p = "TOOBIG  ";
diff -r 899cf8b929a7 -r eb5d80ef97b8 usr.bin/vi/ex/ex_visual.c
--- a/usr.bin/vi/ex/ex_visual.c Thu Oct 19 16:33:01 2000 +0000
+++ b/usr.bin/vi/ex/ex_visual.c Thu Oct 19 16:33:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex_visual.c,v 1.7 1998/01/09 08:08:11 perry Exp $      */
+/*     $NetBSD: ex_visual.c,v 1.7.2.1 2000/10/19 16:33:08 he Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -83,9 +83,9 @@
 
        if (FL_ISSET(cmdp->iflags, E_C_COUNT))
                len = snprintf(buf, sizeof(buf),
-                    "%luz%c%lu", sp->lno, pos, cmdp->count);
+                    "%luz%c%lu", (long)sp->lno, pos, cmdp->count);
        else
-               len = snprintf(buf, sizeof(buf), "%luz%c", sp->lno, pos);
+               len = snprintf(buf, sizeof(buf), "%luz%c", (long)sp->lno, pos);
        (void)v_event_push(sp, NULL, buf, len, CH_NOMAP | CH_QUOTED);
 
        /*



Home | Main Index | Thread Index | Old Index