diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-08-15 17:06:53 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-08-15 17:06:53 +0000 |
commit | 0a829d84d010a54668989784b23950851ad51e8a (patch) | |
tree | 683d7ba5a571afdf00b714cb17606f1bfe28bebe /usr.sbin/config | |
parent | a521fa63c2948442a3835f61a56612ab6756b180 (diff) | |
download | src-0a829d84d010a54668989784b23950851ad51e8a.tar.gz src-0a829d84d010a54668989784b23950851ad51e8a.zip |
Sort getopt(3) options and case statements per style(9)
Alphebetize the options and cases without regard for case.
Notes
Notes:
svn path=/head/; revision=351087
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/main.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index a3e8a438d637..62b8d8bc053b 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -120,11 +120,20 @@ main(int argc, char **argv) printmachine = 0; kernfile = NULL; SLIST_INIT(&includepath); - while ((ch = getopt(argc, argv, "CI:d:gmps:Vx:")) != -1) + while ((ch = getopt(argc, argv, "Cd:gI:mps:Vx:")) != -1) switch (ch) { case 'C': filebased = 1; break; + case 'd': + if (*destdir == '\0') + strlcpy(destdir, optarg, sizeof(destdir)); + else + errx(EXIT_FAILURE, "directory already set"); + break; + case 'g': + debugging++; + break; case 'I': ipath = (struct includepath *) \ calloc(1, sizeof (struct includepath)); @@ -136,15 +145,6 @@ main(int argc, char **argv) case 'm': printmachine = 1; break; - case 'd': - if (*destdir == '\0') - strlcpy(destdir, optarg, sizeof(destdir)); - else - errx(EXIT_FAILURE, "directory already set"); - break; - case 'g': - debugging++; - break; case 'p': profiling++; break; |