Source-Changes-HG archive

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

[src/trunk]: src/bin/ksh add a missing part from rev 1.10 and s/newline/newli...



details:   https://anonhg.NetBSD.org/src/rev/6be174392b47
branches:  trunk
changeset: 766409:6be174392b47
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 22 03:56:17 2011 +0000

description:
add a missing part from rev 1.10 and s/newline/newlinex/.  found by GCC 4.5.3.

diffstat:

 bin/ksh/vi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4c57add35c5d -r 6be174392b47 bin/ksh/vi.c
--- a/bin/ksh/vi.c      Wed Jun 22 02:49:41 2011 +0000
+++ b/bin/ksh/vi.c      Wed Jun 22 03:56:17 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vi.c,v 1.11 2009/04/25 05:11:37 lukem Exp $    */
+/*     $NetBSD: vi.c,v 1.12 2011/06/22 03:56:17 mrg Exp $      */
 
 /*
  *     vi command editing
@@ -9,7 +9,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: vi.c,v 1.11 2009/04/25 05:11:37 lukem Exp $");
+__RCSID("$NetBSD: vi.c,v 1.12 2011/06/22 03:56:17 mrg Exp $");
 #endif
 
 #include "config.h"
@@ -1763,7 +1763,7 @@
        int newlinex;
 {
        (void) memset(wbuf[win], ' ', wbuf_len);
-       if (newline) {
+       if (newlinex) {
                x_putc('\r');
                x_putc('\n');
        }



Home | Main Index | Thread Index | Old Index