summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
commita14d555c873398b14776ca4f2c33f9c69617afb9 (patch)
tree350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/sed
parentf3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff)
downloadFreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip
FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/compile.c6
-rw-r--r--usr.bin/sed/process.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index b958ff8..5564f6e 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -259,7 +259,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(FATAL, "%s: %s\n", p, strerror(errno));
@@ -633,7 +633,7 @@ compile_addr(p, a)
a->type = AT_LAST;
return (p + 1);
/* Line number */
- case '0': case '1': case '2': case '3': case '4':
+ case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
a->type = AT_LINE;
a->u.l = strtol(p, &end, 10);
@@ -751,7 +751,7 @@ findlabel(name)
return (NULL);
}
-/*
+/*
* Warn about any unused labels. As a side effect, release the label hash
* table space.
*/
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 1bcda6d..ca11189 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -423,10 +423,10 @@ flush_appends()
int count, i;
char buf[8 * 1024];
- for (i = 0; i < appendx; i++)
+ for (i = 0; i < appendx; i++)
switch (appends[i].type) {
case AP_STRING:
- fwrite(appends[i].s, sizeof(char), appends[i].len,
+ fwrite(appends[i].s, sizeof(char), appends[i].len,
stdout);
break;
case AP_FILE:
@@ -468,7 +468,7 @@ lputs(s)
else
termwidth = 60;
- for (count = 0; *s; ++s) {
+ for (count = 0; *s; ++s) {
if (count >= termwidth) {
(void)printf("\\\n");
count = 0;
@@ -502,7 +502,7 @@ regexec_e(preg, string, eflags, nomatch, slen)
size_t slen;
{
int eval;
-
+
if (preg == NULL) {
if (defpreg == NULL)
err(FATAL, "first RE may not be empty");
@@ -514,7 +514,7 @@ regexec_e(preg, string, eflags, nomatch, slen)
slen--;
match[0].rm_so = 0;
match[0].rm_eo = slen;
-
+
eval = regexec(defpreg, string,
nomatch ? 0 : maxnsub + 1, match, eflags | REG_STARTEND);
switch(eval) {
OpenPOWER on IntegriCloud