From 75a57bf04a04e7cacbfc1279aa6c35f3f16775d1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 28 Oct 2000 05:41:44 +0000 Subject: Whitespace cleanup. * configure.in: Eliminate subdir stuff. * configure: Regenerate. * include/getopt.h (option): Make name field 'const'. --- winsup/cygwin/regexp/regsub.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/regexp/regsub.c') diff --git a/winsup/cygwin/regexp/regsub.c b/winsup/cygwin/regexp/regsub.c index 3983cc58b..e544072c1 100644 --- a/winsup/cygwin/regexp/regsub.c +++ b/winsup/cygwin/regexp/regsub.c @@ -69,11 +69,11 @@ char *dest; no = *src++ - '0'; else no = -1; - if (no < 0) { /* Ordinary character. */ - if (c == '\\' && (*src == '\\' || *src == '&')) - c = *src++; - *dst++ = c; - } else if (prog->startp[no] != NULL && prog->endp[no] != NULL) { + if (no < 0) { /* Ordinary character. */ + if (c == '\\' && (*src == '\\' || *src == '&')) + c = *src++; + *dst++ = c; + } else if (prog->startp[no] != NULL && prog->endp[no] != NULL) { len = prog->endp[no] - prog->startp[no]; (void) strncpy(dst, prog->startp[no], len); dst += len; -- cgit v1.2.3