>From ed72fd292b3238c0ed46fb7b1f22a080469d0666 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 11 Jan 2023 14:54:55 +0100 Subject: [PATCH 1/2] link tests: Correct indentation. * tests/test-link.h (test_link): Correct indentation. --- ChangeLog | 5 +++++ tests/test-link.h | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9045623e99..60de99cd2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-01-11 Bruno Haible + + link tests: Correct indentation. + * tests/test-link.h (test_link): Correct indentation. + 2023-01-11 Bruno Haible 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 -- 2.34.1