summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-11 05:13:43 +0000
committerMiles Bader <miles@gnu.org>1996-05-11 05:13:43 +0000
commitb8a55374410ad71cbad7c89adb12ffcf1f570522 (patch)
treeb3547e0f48e82c400224c1630b4bfcdd0b718eba
parentee65d09d69b256753fd56548c504bbcf78c59a3b (diff)
(parse_dev_startup_opt, parse_startup_opt):
Use ARGP_ERR_UNKNOWN instead of EINVAL.
-rw-r--r--libdiskfs/opts-std-startup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdiskfs/opts-std-startup.c b/libdiskfs/opts-std-startup.c
index 2fc79cfb..929c4147 100644
--- a/libdiskfs/opts-std-startup.c
+++ b/libdiskfs/opts-std-startup.c
@@ -89,7 +89,7 @@ parse_startup_opt (int opt, char *arg, struct argp_state *state)
diskfs_argv = state->argv; break;
default:
- return EINVAL;
+ return ARGP_ERR_UNKNOWN;
}
return 0;
@@ -140,7 +140,8 @@ parse_dev_startup_opt (int opt, char *arg, struct argp_state *state)
fprintf (stderr, "%s: No device specified\n", program_invocation_name);
argp_help (state->argp, stderr, ARGP_HELP_STD_ERR); /* exits */
- default: return EINVAL;
+ default:
+ return ARGP_ERR_UNKNOWN;
}
return 0;