summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/compile.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-11-04 12:16:47 +0000
committerdes <des@FreeBSD.org>2003-11-04 12:16:47 +0000
commitbc082b44cba97609654396b7a696ffa83a8a4c06 (patch)
tree5f6cea0a0d259ed05d1ce0cc906fb713862fadde /usr.bin/sed/compile.c
parentb91f0f90098b58510256c011dd9c94bdafdf1c93 (diff)
downloadFreeBSD-src-bc082b44cba97609654396b7a696ffa83a8a4c06.zip
FreeBSD-src-bc082b44cba97609654396b7a696ffa83a8a4c06.tar.gz
Whitespace cleanup
Diffstat (limited to 'usr.bin/sed/compile.c')
-rw-r--r--usr.bin/sed/compile.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index 07528611..f0a6c9b 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -171,14 +171,14 @@ compile_stream(struct s_command **link)
}
semicolon: EATSPACE();
- if (p) {
- if (*p == '#' || *p == '\0')
- continue;
- else if (*p == ';') {
- p++;
- goto semicolon;
- }
- }
+ if (p) {
+ if (*p == '#' || *p == '\0')
+ continue;
+ else if (*p == ';') {
+ p++;
+ goto semicolon;
+ }
+ }
if ((*link = cmd = malloc(sizeof(struct s_command))) == NULL)
err(1, "malloc");
link = &cmd->next;
@@ -284,7 +284,7 @@ nonsel: /* Now parse the command */
cmd->t = duptoeol(p, "w command");
if (aflag)
cmd->u.fd = -1;
- else if ((cmd->u.fd = open(p,
+ else if ((cmd->u.fd = open(p,
O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
DEFFILEMODE)) == -1)
err(1, "%s", p);
@@ -317,7 +317,7 @@ nonsel: /* Now parse the command */
p++;
if (*p == '\0' || *p == '\\')
errx(1,
-"%lu: %s: substitute pattern can not be delimited by newline or backslash",
+"%lu: %s: substitute pattern can not be delimited by newline or backslash",
linenum, fname);
if ((cmd->u.s = malloc(sizeof(struct s_subst))) == NULL)
err(1, "malloc");
OpenPOWER on IntegriCloud