From: Bruno Haible <bruno@clisp.org>
Date: Wed, 11 Jan 2023 13:54:55 +0000 (+0100)
Subject: link tests: Correct indentation.
X-Git-Tag: v1.0~1858
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ed72fd292b3238c0ed46fb7b1f22a080469d0666;p=gnulib.git

link tests: Correct indentation.

* tests/test-link.h (test_link): Correct indentation.
---

diff --git a/ChangeLog b/ChangeLog
index 9045623e99..60de99cd2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-01-11  Bruno Haible  <bruno@clisp.org>
+
+	link tests: Correct indentation.
+	* tests/test-link.h (test_link): Correct indentation.
+
 2023-01-11  Bruno Haible  <bruno@clisp.org>
 
 	Fix link errors on Android 4.3.
diff --git a/tests/test-link.h b/tests/test-link.h
index 623f6c70c7..a9298c8a2d 100644
--- a/tests/test-link.h
+++ b/tests/test-link.h
@@ -40,16 +40,16 @@ test_link (int (*func) (char const *, char const *), bool print)
      file systems, but there, st_nlink and st_ino are reliable.  */
   ret = func (BASE "a", BASE "b");
   if (!ret)
-  {
-    struct stat st;
-    ASSERT (stat (BASE "b", &st) == 0);
-    if (st.st_ino && st.st_nlink != 2)
-      {
-        ASSERT (unlink (BASE "b") == 0);
-        errno = EPERM;
-        ret = -1;
-      }
-  }
+    {
+      struct stat st;
+      ASSERT (stat (BASE "b", &st) == 0);
+      if (st.st_ino && st.st_nlink != 2)
+        {
+          ASSERT (unlink (BASE "b") == 0);
+          errno = EPERM;
+          ret = -1;
+        }
+    }
   if (ret == -1)
     {
       /* If the device does not support hard links, errno is