]> Savannah Git Hosting - gnulib.git/commitdiff
link tests: Correct indentation.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 13:54:55 +0000 (14:54 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 17:11:16 +0000 (18:11 +0100)
* tests/test-link.h (test_link): Correct indentation.

ChangeLog
tests/test-link.h

index 9045623e992be8a9aefbe34117531ef8805ffc76..60de99cd2e742cb76d3004569c844120af35fe73 100644 (file)
--- 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.
index 623f6c70c7f4bfd9536650f087bfb652c771ddb8..a9298c8a2d9f02ac5a9d99b51a57a8ab5ed328ed 100644 (file)
@@ -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