* 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>
+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
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;
}
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;
}
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);