summaryrefslogtreecommitdiff
path: root/ufs
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
commit173242349fecb85dd86365183c9b3ad7a7557d6f (patch)
tree10d48c16069c8d328ae1b5fc5e420b71e9621893 /ufs
parent1f920d4fb4b20c5f88284bd06f4e4399a1c76ede (diff)
(parse_opt): Rearrange slightly.
Diffstat (limited to 'ufs')
-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;
}