diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/opts-std-startup.c | 5 |
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; |