summaryrefslogtreecommitdiff
path: root/ufs/main.c
diff options
context:
space:
mode:
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;
}