diff options
author | Miles Bader <miles@gnu.org> | 1996-05-11 05:23:35 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-11 05:23:35 +0000 |
commit | 689b7d37999ed684ef99a7c7a668f2bf8df7bd17 (patch) | |
tree | 4783c394c6f7550301f4e426d8062f0315618eea | |
parent | b8a55374410ad71cbad7c89adb12ffcf1f570522 (diff) |
(parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.
-rw-r--r-- | libstore/storecat.c | 2 | ||||
-rw-r--r-- | libstore/storeread.c | 2 | ||||
-rw-r--r-- | trans/new-fifo.c | 3 | ||||
-rw-r--r-- | ufs-utils/mkfs.c | 7 |
4 files changed, 8 insertions, 6 deletions
diff --git a/libstore/storecat.c b/libstore/storecat.c index b1f4fa57..1c307965 100644 --- a/libstore/storecat.c +++ b/libstore/storecat.c @@ -99,7 +99,7 @@ main (int argc, char **argv) break; default: - return EINVAL; + return ARGP_ERR_UNKNOWN; } return 0; } diff --git a/libstore/storeread.c b/libstore/storeread.c index e5057a97..ea012727 100644 --- a/libstore/storeread.c +++ b/libstore/storeread.c @@ -90,7 +90,7 @@ main (int argc, char **argv) case ARGP_KEY_NO_ARGS: default: - return EINVAL; + return ARGP_ERR_UNKNOWN; } return 0; } diff --git a/trans/new-fifo.c b/trans/new-fifo.c index b1bc731d..150121f6 100644 --- a/trans/new-fifo.c +++ b/trans/new-fifo.c @@ -160,7 +160,8 @@ fifo_trans_parse_args (struct fifo_trans *trans, int argc, char **argv, case 's': trans->server = 1; break; case 'U': trans->use_server = arg; break; case 'S': trans->use_server = 0; break; - default: return EINVAL; + default: + return ARGP_ERR_UNKNOWN; } return 0; } diff --git a/ufs-utils/mkfs.c b/ufs-utils/mkfs.c index e585b598..2fb1248c 100644 --- a/ufs-utils/mkfs.c +++ b/ufs-utils/mkfs.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)mkfs.c 8.3 (Berkeley) 2/3/94";*/ -static char *rcsid = "$Id: mkfs.c,v 1.10 1996/04/03 21:34:56 miles Exp $"; +static char *rcsid = "$Id: mkfs.c,v 1.11 1996/05/11 05:21:06 miles Exp $"; #endif /* not lint */ #include <unistd.h> @@ -309,11 +309,12 @@ main (int argc, char **argv) case ARGP_KEY_ARG: if (state->arg_num > 0) - return EINVAL; + return ARGP_ERR_UNKNOWN; device = arg; + break; default: - return EINVAL; + return ARGP_ERR_UNKNOWN; } return 0; } |