public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] newlib: libc: Fix indentation
@ 2023-12-03  3:23 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-03  3:23 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b64d0d53af230c74201ffbff323b61b57fc74cc1

commit b64d0d53af230c74201ffbff323b61b57fc74cc1
Author: Kuan-Wei Chiu <visitorckw@gmail.com>
Date:   Sat Dec 2 12:21:07 2023 +0800

    newlib: libc: Fix indentation
    
    Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>

Diff:
---
 newlib/libc/posix/regcomp.c | 24 ++++++++++++------------
 1 file 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);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-03  3:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-03  3:23 [newlib-cygwin/main] newlib: libc: Fix indentation Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).