summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2013-02-22 14:59:24 +0800
committerDavid Sterba <dsterba@suse.cz>2013-02-27 16:47:26 +0100
commit57ca339bf449364c80b0e045dc79c5f88446d682 (patch)
tree4a66db250b1f3e982148613459ec4ee5cb945452 /utils.c
parentb7b27b4efb0eb599f89ea664c3acb216876f00fd (diff)
Btrfs-progs: add correct indentation
A trivial fix, corrects the indentation. Signed-off-by: Anand Jain <anand.jain@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/utils.c b/utils.c
index ac3c053e..1813ddae 100644
--- a/utils.c
+++ b/utils.c
@@ -1316,12 +1316,13 @@ scan_again:
return -ENOENT;
}
/* skip the header */
- for(i=0; i < 2 ; i++)
- if(!fgets(buf, 1023, proc_partitions)){
- fprintf(stderr, "Unable to read '/proc/partitions' for scanning\n");
- fclose(proc_partitions);
- return -ENOENT;
- }
+ for (i = 0; i < 2; i++)
+ if (!fgets(buf, 1023, proc_partitions)) {
+ fprintf(stderr,
+ "Unable to read '/proc/partitions' for scanning\n");
+ fclose(proc_partitions);
+ return -ENOENT;
+ }
strcpy(fullpath,"/dev/");
while(fgets(buf, 1023, proc_partitions)) {