summaryrefslogtreecommitdiffstats
path: root/sbin/tunefs/tunefs.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-10-15 15:30:55 +0000
committerrwatson <rwatson@FreeBSD.org>2002-10-15 15:30:55 +0000
commit3e13a3250af068de42ff4ef8176a904aa98420a6 (patch)
tree15d8a7173c3ffa1347e1fb816f63324ed11a9a56 /sbin/tunefs/tunefs.c
parent00d15800f1559a723e52ed176f834ad2b9846502 (diff)
downloadFreeBSD-src-3e13a3250af068de42ff4ef8176a904aa98420a6.zip
FreeBSD-src-3e13a3250af068de42ff4ef8176a904aa98420a6.tar.gz
Correct some of the style problems in this file:
I introduced a style problem when I sorted 'a' before 'A'; our preferred order sorts 'A' first. Correct. Use .Cm instead of .Ar. Submitted by: bde
Diffstat (limited to 'sbin/tunefs/tunefs.c')
-rw-r--r--sbin/tunefs/tunefs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index f915686..45166c8 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -109,8 +109,12 @@ main(argc, argv)
if (argc < 3)
usage();
found_arg = 0; /* at least one arg is required */
- while ((ch = getopt(argc, argv, "a:Ae:f:l:m:n:o:ps:")) != -1)
+ while ((ch = getopt(argc, argv, "Aa:e:f:l:m:n:o:ps:")) != -1)
switch (ch) {
+ case 'A':
+ found_arg = 1;
+ Aflag++;
+ break;
case 'a':
found_arg = 1;
name = "ACLs";
@@ -121,10 +125,6 @@ main(argc, argv)
}
aflag = 1;
break;
- case 'A':
- found_arg = 1;
- Aflag++;
- break;
case 'e':
found_arg = 1;
name = "maximum blocks per file in a cylinder group";
@@ -377,7 +377,7 @@ void
usage()
{
fprintf(stderr, "%s\n%s\n%s\n",
-"usage: tunefs [-a enable | disable] [-A] [-e maxbpg] [-f avgfilesize]",
+"usage: tunefs [-A] [-a enable | disable] [-e maxbpg] [-f avgfilesize]",
" [-l enable | disable] [-m minfree] [-n enable | disable]",
" [-o space | time] [-p] [-s avgfpdir] special | filesystem");
exit(2);
OpenPOWER on IntegriCloud