Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions bin/df/df.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ main(int argc, char *argv[])
/*
* POSIX specifically discusses the behavior of
* both -k and -P. It states that the blocksize should
* be set to 1024. Thus, if this occurs, simply break
* rather than clobbering the old blocksize.
* be set to 1024.
*/
if (kflag)
if (kflag) {
setenv("BLOCKSIZE", "1024", 1);
break;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this } needs to be indented using 3 horizontal tabulation characters.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should i make these changes and squash it here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok final :

  1. Remove this one : Thus, if this occurs, simply break ather than clobbering the old blocksize.
  2. and this } needs to be indented using 3 horizontal tabulation characters.

setenv("BLOCKSIZE", "512", 1);
hflag = 0;
break;
Expand All @@ -154,7 +155,7 @@ main(int argc, char *argv[])
break;
case 'k':
kflag++;
setenv("BLOCKSIZE", "1024", 1);
setenv("BLOCKSIZE", "1k", 1);
hflag = 0;
break;
case 'l':
Expand Down