# HG changeset patch # User Eric Blake # Date 1254504893 21600 # Node ID 3ba227551e1d193429eef3968da6362b5f60b595 # Parent 6e6a73b73bcd3273a7d097ac293ef02e9d7f15e3 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 --- 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 --- a/lib/rename.c +++ b/lib/rename.c @@ -100,10 +100,10 @@ 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 @@ 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 --- a/tests/test-link.h +++ b/tests/test-link.h @@ -53,21 +53,21 @@ 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);