Source-Changes-HG archive

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

[src/trunk]: src/bin/ed PR/48692: Henning Petersen: Missplaced paranthesis in...



details:   https://anonhg.NetBSD.org/src/rev/6ad0ef2b392f
branches:  trunk
changeset: 795070:6ad0ef2b392f
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 31 12:55:46 2014 +0000

description:
PR/48692: Henning Petersen: Missplaced paranthesis in bin/ed gbl.c and main.c

diffstat:

 bin/ed/glbl.c |  6 +++---
 bin/ed/main.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 9ad43445f3fb -r 6ad0ef2b392f bin/ed/glbl.c
--- a/bin/ed/glbl.c     Mon Mar 31 12:38:40 2014 +0000
+++ b/bin/ed/glbl.c     Mon Mar 31 12:55:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: glbl.c,v 1.7 2014/03/23 05:06:42 dholland Exp $        */
+/*     $NetBSD: glbl.c,v 1.8 2014/03/31 12:55:46 christos Exp $        */
 
 /* glob.c: This file contains the global command routines for the ed line
    editor */
@@ -33,7 +33,7 @@
 #if 0
 static char *rcsid = "@(#)glob.c,v 1.1 1994/02/01 00:34:40 alm Exp";
 #else
-__RCSID("$NetBSD: glbl.c,v 1.7 2014/03/23 05:06:42 dholland Exp $");
+__RCSID("$NetBSD: glbl.c,v 1.8 2014/03/31 12:55:46 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -137,7 +137,7 @@
                        if ((status = extract_addr_range()) < 0 ||
                            (status = exec_command()) < 0 ||
                            (status > 0 && (status = display_lines(
-                           current_addr, current_addr, status))) < 0)
+                           current_addr, current_addr, status)) < 0))
                                return status;
        }
        return 0;
diff -r 9ad43445f3fb -r 6ad0ef2b392f bin/ed/main.c
--- a/bin/ed/main.c     Mon Mar 31 12:38:40 2014 +0000
+++ b/bin/ed/main.c     Mon Mar 31 12:55:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.26 2014/03/23 05:06:42 dholland Exp $       */
+/*     $NetBSD: main.c,v 1.27 2014/03/31 12:55:46 christos Exp $       */
 
 /* main.c: This file contains the main control and user-interface routines
    for the ed line editor. */
@@ -39,7 +39,7 @@
 #if 0
 static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
 #else
-__RCSID("$NetBSD: main.c,v 1.26 2014/03/23 05:06:42 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.27 2014/03/31 12:55:46 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -226,7 +226,7 @@
                    (status = exec_command()) >= 0)
                        if (!status || (status &&
                            (status = display_lines(current_addr, current_addr,
-                               status))) >= 0)
+                               status)) >= 0))
                                continue;
                switch (status) {
                case EOF:



Home | Main Index | Thread Index | Old Index