From 173242349fecb85dd86365183c9b3ad7a7557d6f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 4 Oct 1995 21:22:49 +0000 Subject: (parse_opt): Rearrange slightly. --- ufs/main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ufs') 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; } -- cgit v1.2.3