diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-28 05:41:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-28 05:41:44 +0000 |
commit | 75a57bf04a04e7cacbfc1279aa6c35f3f16775d1 (patch) | |
tree | 550c48ebd0fbf7ff9990077c95c882242dd88b78 /winsup/cygwin/regexp/regsub.c | |
parent | ce475802f8aa48518553eabd5887bcc439b61a0d (diff) | |
download | cygnal-75a57bf04a04e7cacbfc1279aa6c35f3f16775d1.tar.gz cygnal-75a57bf04a04e7cacbfc1279aa6c35f3f16775d1.tar.bz2 cygnal-75a57bf04a04e7cacbfc1279aa6c35f3f16775d1.zip |
Whitespace cleanup.
* configure.in: Eliminate subdir stuff.
* configure: Regenerate.
* include/getopt.h (option): Make name field 'const'.
Diffstat (limited to 'winsup/cygwin/regexp/regsub.c')
-rw-r--r-- | winsup/cygwin/regexp/regsub.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |