summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-07-09 02:47:42 +0100
committerPádraig Brady <P@draigBrady.com>2013-07-11 00:23:19 +0100
commit75c090931c164d31c57ff4bccf923f4b765c2bb2 (patch)
tree20738e49b28ca93674a5c6be9f009e20027650ce
parent616fa9c7b335117243c0c157a6c45445e20fdfa0 (diff)
downloadcoreutils-75c090931c164d31c57ff4bccf923f4b765c2bb2.tar.xz
maint: adjust indentation in df.c
* src/df.c: Adjust indentation and spacing with has gotten quite out of line in a couple of places.
-rw-r--r--src/df.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/df.c b/src/df.c
index bc507c72e..bb11bb445 100644
--- a/src/df.c
+++ b/src/df.c
@@ -636,8 +636,8 @@ filter_mount_list (void)
if (devlist)
{
/* Let the shorter mountdir win. */
- if ( !strchr (devlist->me->me_devname, '/')
- || ( strlen (devlist->me->me_mountdir)
+ if (! strchr (devlist->me->me_devname, '/')
+ || (strlen (devlist->me->me_mountdir)
> strlen (me->me_mountdir)))
{
/* FIXME: free ME - the others are also not free()d. */
@@ -1035,8 +1035,10 @@ get_disk (char const *disk)
struct mount_entry const *best_match = NULL;
for (me = mount_list; me; me = me->me_next)
- if (STREQ (disk, me->me_devname))
- best_match = me;
+ {
+ if (STREQ (disk, me->me_devname))
+ best_match = me;
+ }
if (best_match)
{
@@ -1069,17 +1071,19 @@ get_point (const char *point, const struct stat *statp)
size_t best_match_len = 0;
for (me = mount_list; me; me = me->me_next)
- if (!STREQ (me->me_type, "lofs")
- && (!best_match || best_match->me_dummy || !me->me_dummy))
{
- size_t len = strlen (me->me_mountdir);
- if (best_match_len <= len && len <= resolved_len
- && (len == 1 /* root file system */
- || ((len == resolved_len || resolved[len] == '/')
- && STREQ_LEN (me->me_mountdir, resolved, len))))
+ if (!STREQ (me->me_type, "lofs")
+ && (!best_match || best_match->me_dummy || !me->me_dummy))
{
- best_match = me;
- best_match_len = len;
+ size_t len = strlen (me->me_mountdir);
+ if (best_match_len <= len && len <= resolved_len
+ && (len == 1 /* root file system */
+ || ((len == resolved_len || resolved[len] == '/')
+ && STREQ_LEN (me->me_mountdir, resolved, len))))
+ {
+ best_match = me;
+ best_match_len = len;
+ }
}
}
}