summaryrefslogtreecommitdiff
path: root/ufs/main.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-04 21:22:49 +0000
committerMiles Bader <miles@gnu.org>1995-10-04 21:22:49 +0000
commit2259b90b008f59de33003044c51c73f54df0bf1c (patch)
treeedd79b073ef3ebb363184fee42b94f36957fa27d /ufs/main.c
parent494c3bc0e7e9a8ae711f9718e3b01b4cb87f79bb (diff)
(parse_opt): Rearrange slightly.
Diffstat (limited to 'ufs/main.c')
-rw-r--r--ufs/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ufs/main.c b/ufs/main.c
index 59fb2822..26defc33 100644
--- a/ufs/main.c
+++ b/ufs/main.c
@@ -66,9 +66,13 @@ static error_t
parse_opt (int opt, char *arg)
{
/* We currently only deal with one option... */
- if (opt != '?')
- return EINVAL;
- usage (0); /* never returns */
+ switch (opt)
+ {
+ case '?':
+ usage (0); /* never returns */
+ default:
+ return EINVAL;
+ }
return 0;
}