Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2023-12-02 07:21:07 +0300
committerMike Frysinger <vapier@gentoo.org>2023-12-03 06:22:26 +0300
commitb64d0d53af230c74201ffbff323b61b57fc74cc1 (patch)
treec62346362bdb2ba97bc665f5d0b69e459ad06c8d /newlib
parent65f7ab0bb928162f6a6ea60e2803d6b9e5d95e8b (diff)
newlib: libc: Fix indentation
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/posix/regcomp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/newlib/libc/posix/regcomp.c b/newlib/libc/posix/regcomp.c
index e71bc005c..c78974675 100644
--- a/newlib/libc/posix/regcomp.c
+++ b/newlib/libc/posix/regcomp.c
@@ -2001,10 +2001,10 @@ struct re_guts *g;
}
g->matchjump = (int*) malloc(g->mlen * sizeof(unsigned int));
- if (g->matchjump == NULL) { /* Not a fatal error */
- free(pmatches);
- return;
- }
+ if (g->matchjump == NULL) { /* Not a fatal error */
+ free(pmatches);
+ return;
+ }
/* Set maximum possible jump for each character in the pattern */
for (mindex = 0; mindex < g->mlen; mindex++)
@@ -2037,16 +2037,16 @@ struct re_guts *g;
g->matchjump[mindex] = MIN(g->matchjump[mindex],
g->mlen + suffix - mindex);
- ssuffix = pmatches[suffix];
- while (suffix < g->mlen) {
- while (suffix <= ssuffix && suffix < g->mlen) {
- g->matchjump[suffix] = MIN(g->matchjump[suffix],
+ ssuffix = pmatches[suffix];
+ while (suffix < g->mlen) {
+ while (suffix <= ssuffix && suffix < g->mlen) {
+ g->matchjump[suffix] = MIN(g->matchjump[suffix],
g->mlen + ssuffix - suffix);
- suffix++;
- }
+ suffix++;
+ }
if (suffix < g->mlen)
- ssuffix = pmatches[ssuffix];
- }
+ ssuffix = pmatches[ssuffix];
+ }
free(pmatches);
}