From: Eric Blake Date: Fri, 2 Oct 2009 17:34:53 +0000 (-0600) Subject: maint: cleanup whitespace in recent commits X-Git-Tag: v0.1~5385 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=4ab62b551bab5c917005c7155c4976e5db5a3c4c;p=gnulib.git maint: cleanup whitespace in recent commits * lib/rename.c (rpl_rename): Remove tabs. * tests/test-link.h (test_link): Likewise. Reported by Jim Meyering. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index e1d3a41b5..a8e9cf23a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-02 Eric Blake + + maint: cleanup whitespace in recent commits + * lib/rename.c (rpl_rename): Remove tabs. + * tests/test-link.h (test_link): Likewise. + Reported by Jim Meyering. + 2009-10-02 Ben Pfaff relocatable-prog-wrapper: Add missing dependency on diff --git a/lib/rename.c b/lib/rename.c index abd1ec51a..44c9e75c2 100644 --- a/lib/rename.c +++ b/lib/rename.c @@ -100,10 +100,10 @@ rpl_rename (char const *src, char const *dst) else { if (S_ISDIR (dst_st.st_mode) != S_ISDIR (src_st.st_mode)) - { - errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; - return -1; - } + { + errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; + return -1; + } dst_exists = true; } @@ -342,13 +342,13 @@ rpl_rename (char const *src, char const *dst) else { if (S_ISDIR (dst_st.st_mode) != S_ISDIR (src_st.st_mode)) - { - errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; - return -1; - } + { + errno = S_ISDIR (dst_st.st_mode) ? EISDIR : ENOTDIR; + return -1; + } # if RENAME_HARD_LINK_BUG if (SAME_INODE (src_st, dst_st)) - return 0; + return 0; # endif /* RENAME_HARD_LINK_BUG */ dst_exists = true; } diff --git a/tests/test-link.h b/tests/test-link.h index 4d08e7b46..363097d4c 100644 --- a/tests/test-link.h +++ b/tests/test-link.h @@ -53,21 +53,21 @@ test_link (int (*func) (char const *, char const *), bool print) if (ret == -1) { /* If the device does not support hard links, errno is - EPERM on Linux, EOPNOTSUPP on FreeBSD. */ + EPERM on Linux, EOPNOTSUPP on FreeBSD. */ switch (errno) - { - case EPERM: - case EOPNOTSUPP: + { + case EPERM: + case EOPNOTSUPP: if (print) fputs ("skipping test: " "hard links not supported on this file system\n", stderr); ASSERT (unlink (BASE "a") == 0); - return 77; - default: - perror ("link"); - return 1; - } + return 77; + default: + perror ("link"); + return 1; + } } ASSERT (ret == 0);