From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 7BE023858C2D; Sun, 3 Dec 2023 03:23:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BE023858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701573780; bh=Nhzz1ICclfcLm9/S6uW0vsNMi5AgcuDDcpJ1XRLusX0=; h=From:To:Subject:Date:From; b=ApMSQPnqoxalSmMcGSzTj7Rq5UoEBVIlLzWsisgh4rJGp1sGXp9/vMNedZHY9bM0M RjLKzmc4/tvoeGiEZyiPc1jMUN54AJ2aND70A3JkdZeBz/R7kqQKdhfEevS3PDWWPi HMJj1dh1i9VxA5ES9zQ5G4HF7pYy7sSzYwFGOsJM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] newlib: libc: Fix indentation X-Act-Checkin: newlib-cygwin X-Git-Author: Kuan-Wei Chiu X-Git-Refname: refs/heads/main X-Git-Oldrev: 65f7ab0bb928162f6a6ea60e2803d6b9e5d95e8b X-Git-Newrev: b64d0d53af230c74201ffbff323b61b57fc74cc1 Message-Id: <20231203032300.7BE023858C2D@sourceware.org> Date: Sun, 3 Dec 2023 03:23:00 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Db64d0d53af2= 30c74201ffbff323b61b57fc74cc1 commit b64d0d53af230c74201ffbff323b61b57fc74cc1 Author: Kuan-Wei Chiu Date: Sat Dec 2 12:21:07 2023 +0800 newlib: libc: Fix indentation =20 Signed-off-by: Kuan-Wei Chiu 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; } =20 g->matchjump =3D (int*) malloc(g->mlen * sizeof(unsigned int)); - if (g->matchjump =3D=3D NULL) { /* Not a fatal error */ - free(pmatches); - return; - } + if (g->matchjump =3D=3D NULL) { /* Not a fatal error */ + free(pmatches); + return; + } =20 /* Set maximum possible jump for each character in the pattern */ for (mindex =3D 0; mindex < g->mlen; mindex++) @@ -2037,16 +2037,16 @@ struct re_guts *g; g->matchjump[mindex] =3D MIN(g->matchjump[mindex], g->mlen + suffix - mindex); =20 - ssuffix =3D pmatches[suffix]; - while (suffix < g->mlen) { - while (suffix <=3D ssuffix && suffix < g->mlen) { - g->matchjump[suffix] =3D MIN(g->matchjump[suffix], + ssuffix =3D pmatches[suffix]; + while (suffix < g->mlen) { + while (suffix <=3D ssuffix && suffix < g->mlen) { + g->matchjump[suffix] =3D MIN(g->matchjump[suffix], g->mlen + ssuffix - suffix); - suffix++; - } + suffix++; + } if (suffix < g->mlen) - ssuffix =3D pmatches[ssuffix]; - } + ssuffix =3D pmatches[ssuffix]; + } =20 free(pmatches); }