Source-Changes-HG archive

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

[src/trunk]: src/dist/nvi/ex initialise from_cs[1] instead of from_cs[0] twic...



details:   https://anonhg.NetBSD.org/src/rev/22d98794a89d
branches:  trunk
changeset: 766411:22d98794a89d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 22 03:57:46 2011 +0000

description:
initialise from_cs[1] instead of from_cs[0] twice.  from GCC 4.5.3.

diffstat:

 dist/nvi/ex/ex_cscope.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 334a780ee1c2 -r 22d98794a89d dist/nvi/ex/ex_cscope.c
--- a/dist/nvi/ex/ex_cscope.c   Wed Jun 22 03:57:20 2011 +0000
+++ b/dist/nvi/ex/ex_cscope.c   Wed Jun 22 03:57:46 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex_cscope.c,v 1.7 2011/03/21 14:53:03 tnozaki Exp $ */
+/*     $NetBSD: ex_cscope.c,v 1.8 2011/06/22 03:57:46 mrg Exp $ */
 
 /*-
  * Copyright (c) 1994, 1996
@@ -379,7 +379,7 @@
         * Cscope reads from to_cs[0] and writes to from_cs[1]; vi reads from
         * from_cs[0] and writes to to_cs[1].
         */
-       to_cs[0] = to_cs[1] = from_cs[0] = from_cs[0] = -1;
+       to_cs[0] = to_cs[1] = from_cs[0] = from_cs[1] = -1;
        if (pipe(to_cs) < 0 || pipe(from_cs) < 0) {
                msgq(sp, M_SYSERR, "pipe");
                goto err;



Home | Main Index | Thread Index | Old Index