summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/process.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-01-21 10:05:23 +0000
committerkrw <krw@openbsd.org>2017-01-21 10:05:23 +0000
commit38b9eeb9d205c3a53ae55dc1bb1c2e0f1f1f8dc1 (patch)
tree2e6a23e80603589a9a9d1abf44a347dcc2d22173 /usr.bin/sed/process.c
parentNuke more whitespace caught in the headlights of "warning:" (diff)
downloadwireguard-openbsd-38b9eeb9d205c3a53ae55dc1bb1c2e0f1f1f8dc1.tar.xz
wireguard-openbsd-38b9eeb9d205c3a53ae55dc1bb1c2e0f1f1f8dc1.zip
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);