summaryrefslogtreecommitdiff
path: root/usr.bin/sed/process.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-01-21 10:05:24 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-01-21 10:05:24 +0000
commit460908b8a3d93d1cb31f994c90eaab459f477848 (patch)
treea0df9b9131303859e2700de8fde1c1034e5c5fd9 /usr.bin/sed/process.c
parent5634107b10bf8ca90cd3cc18b060c3841912adc7 (diff)
Nuke more whitespace caught in the headlights of "warning:"
rectification.
Diffstat (limited to 'usr.bin/sed/process.c')
-rw-r--r--usr.bin/sed/process.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 81bf2ad322b..e63896d5804 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.30 2017/01/20 10:26:16 krw Exp $ */
+/* $OpenBSD: process.c,v 1.31 2017/01/21 10:05:23 krw Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -393,7 +393,7 @@ substitute(struct s_command *cp)
else
slen--;
if (*s != '\0') {
- cspace(&SS, s++, 1, APPEND);
+ cspace(&SS, s++, 1, APPEND);
le++;
}
lastempty = 1;
@@ -568,12 +568,12 @@ regsub(SPACE *sp, char *string, char *src)
else
no = -1;
if (no < 0) { /* Ordinary character. */
- if (c == '\\' && (*src == '\\' || *src == '&'))
- c = *src++;
+ if (c == '\\' && (*src == '\\' || *src == '&'))
+ c = *src++;
NEEDSP(1);
- *dst++ = c;
+ *dst++ = c;
++sp->len;
- } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
+ } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
len = match[no].rm_eo - match[no].rm_so;
NEEDSP(len);
memmove(dst, string + match[no].rm_so, len);