]> Savannah Git Hosting - gnulib.git/commitdiff
Fix some "make sc_prohibit_leading_TABs" findings.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Apr 2023 17:37:24 +0000 (19:37 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Apr 2023 17:37:24 +0000 (19:37 +0200)
* tests/test-calloc-gnu.c: Expand tabs.
* tests/test-regex.c: Likewise.

ChangeLog
tests/test-calloc-gnu.c
tests/test-regex.c

index 8ffdb339d07b4f93a8a817d7b3bfac8a6a9f5720..b7dda4241bdfd0c85aa2ca9319abc7c3b254940c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-11  Bruno Haible  <bruno@clisp.org>
+
+       Fix some "make sc_prohibit_leading_TABs" findings.
+       * tests/test-calloc-gnu.c: Expand tabs.
+       * tests/test-regex.c: Likewise.
+
 2023-04-11  Bruno Haible  <bruno@clisp.org>
 
        Makefile: Fix a syntax alert.
index bcd47d4f01e6fb751f0917cd3f72b116e0c71473..fd72c44c6007cdc55a4c8dce5972bda33488d202 100644 (file)
@@ -63,7 +63,7 @@ main ()
         ASSERT (p == NULL);
         ASSERT (errno == ENOMEM);
 
-       p = calloc (SIZE_MAX / n + 1, identity (n));
+        p = calloc (SIZE_MAX / n + 1, identity (n));
         ASSERT (p == NULL);
         ASSERT (errno == ENOMEM);
       }
index aa85e81c568a4c59169644292534da1966bcb6a9..787ca514720f882f6087e14b554e3307acb0f42f 100644 (file)
@@ -134,31 +134,31 @@ bug_regex11 (void)
     {
       n = regcomp (&re, tests[i].pattern, tests[i].flags);
       if (n != 0)
-       {
-         char buf[500];
-         regerror (n, &re, buf, sizeof (buf));
-         report_error ("%s: regcomp %zd failed: %s", tests[i].pattern, i, buf);
-         continue;
-       }
+        {
+          char buf[500];
+          regerror (n, &re, buf, sizeof (buf));
+          report_error ("%s: regcomp %zd failed: %s", tests[i].pattern, i, buf);
+          continue;
+        }
 
       if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0))
-       {
-         report_error ("%s: regexec %zd failed", tests[i].pattern, i);
-         regfree (&re);
-         continue;
-       }
+        {
+          report_error ("%s: regexec %zd failed", tests[i].pattern, i);
+          regfree (&re);
+          continue;
+        }
 
       for (n = 0; n < tests[i].nmatch; ++n)
-       if (rm[n].rm_so != tests[i].rm[n].rm_so
+        if (rm[n].rm_so != tests[i].rm[n].rm_so
               || rm[n].rm_eo != tests[i].rm[n].rm_eo)
-         {
-           if (tests[i].rm[n].rm_so == -1 && tests[i].rm[n].rm_eo == -1)
-             break;
-           report_error ("%s: regexec %zd match failure rm[%d] %d..%d",
+          {
+            if (tests[i].rm[n].rm_so == -1 && tests[i].rm[n].rm_eo == -1)
+              break;
+            report_error ("%s: regexec %zd match failure rm[%d] %d..%d",
                           tests[i].pattern, i, n,
                           (int) rm[n].rm_so, (int) rm[n].rm_eo);
-           break;
-         }
+            break;
+          }
 
       regfree (&re);
     }