Mercurial > hg > octave-kai > gnulib-hg
changeset 12102:3ba227551e1d
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 <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Fri, 02 Oct 2009 11:34:53 -0600 |
parents | 6e6a73b73bcd |
children | 832357ca223a |
files | ChangeLog lib/rename.c tests/test-link.h |
diffstat | 3 files changed, 25 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-02 Eric Blake <ebb9@byu.net> + + 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 <blp@gnu.org> relocatable-prog-wrapper: Add missing dependency on
--- 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; }
--- 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);