diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-30 05:55:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-30 05:55:07 +0000 |
commit | dd54c3189529154d3e721734ddc2124dbcc0ab8b (patch) | |
tree | 671478ae3465363683ecbf08473bd02610d37392 /bin/ed/glbl.c | |
parent | fd1e6c7f3c25d831d0731a4c23eed63ae62fa97f (diff) |
Wall
Diffstat (limited to 'bin/ed/glbl.c')
-rw-r--r-- | bin/ed/glbl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c index a0a4d148a7f..cc66ffc62e0 100644 --- a/bin/ed/glbl.c +++ b/bin/ed/glbl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: glbl.c,v 1.6 1997/09/01 18:29:28 deraadt Exp $ */ +/* $OpenBSD: glbl.c,v 1.7 1998/04/30 05:55:05 deraadt Exp $ */ /* $NetBSD: glbl.c,v 1.2 1995/03/21 09:04:41 cgd Exp $ */ /* glob.c: This file contains the global command routines for the ed line @@ -33,7 +33,7 @@ #if 0 static char *rcsid = "@(#)glob.c,v 1.1 1994/02/01 00:34:40 alm Exp"; #else -static char rcsid[] = "$OpenBSD: glbl.c,v 1.6 1997/09/01 18:29:28 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: glbl.c,v 1.7 1998/04/30 05:55:05 deraadt Exp $"; #endif #endif /* not lint */ @@ -92,11 +92,12 @@ exec_global(interact, gflag) char *cmd = NULL; #ifdef BACKWARDS - if (!interact) + if (!interact) { if (!strcmp(ibufp, "\n")) cmd = "p\n"; /* null cmd-list == `p' */ else if ((cmd = get_extended_line(&n, 0)) == NULL) return ERR; + } #else if (!interact && (cmd = get_extended_line(&n, 0)) == NULL) return ERR; |