Module Name:    src
Committed By:   christos
Date:           Mon Mar 31 12:55:47 UTC 2014

Modified Files:
        src/bin/ed: glbl.c main.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/bin/ed/glbl.c
cvs rdiff -u -r1.26 -r1.27 src/bin/ed/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/ed/glbl.c
diff -u src/bin/ed/glbl.c:1.7 src/bin/ed/glbl.c:1.8
--- src/bin/ed/glbl.c:1.7	Sun Mar 23 01:06:42 2014
+++ src/bin/ed/glbl.c	Mon Mar 31 08:55:46 2014
@@ -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 @@ exec_global(int interact, int gflag)
 			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;

Index: src/bin/ed/main.c
diff -u src/bin/ed/main.c:1.26 src/bin/ed/main.c:1.27
--- src/bin/ed/main.c:1.26	Sun Mar 23 01:06:42 2014
+++ src/bin/ed/main.c	Mon Mar 31 08:55:46 2014
@@ -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 @@ __COPYRIGHT(
 #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 @@ top:
 		    (status = exec_command()) >= 0)
 			if (!status || (status &&
 			    (status = display_lines(current_addr, current_addr,
-			        status))) >= 0)
+			        status)) >= 0))
 				continue;
 		switch (status) {
 		case EOF:

Reply via email to