summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstore/storecat.c2
-rw-r--r--libstore/storeread.c2
-rw-r--r--trans/new-fifo.c3
-rw-r--r--ufs-utils/mkfs.c7
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;
}