aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/common
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1999-01-11 06:41:32 +0000
committerMike Smith <msmith@FreeBSD.org>1999-01-11 06:41:32 +0000
commit95d50652d0e6c2620f1b1d2b1a316896f95d078c (patch)
treeed9b064fa7c0d0e0e9c1e89763b638cffbd236e6 /sys/boot/common
parenta79658408cb5bd67da5f09224af8011736de2ee3 (diff)
Notes
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/commands.c5
-rw-r--r--sys/boot/common/ls.c3
-rw-r--r--sys/boot/common/module.c4
-rw-r--r--sys/boot/common/pnp.c1
4 files changed, 10 insertions, 3 deletions
diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c
index 898493757206..fe0eb54d7707 100644
--- a/sys/boot/common/commands.c
+++ b/sys/boot/common/commands.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: commands.c,v 1.7 1998/10/31 02:53:09 msmith Exp $
+ * $Id: commands.c,v 1.8 1999/01/09 02:34:48 msmith Exp $
*/
#include <stand.h>
@@ -299,6 +299,7 @@ command_echo(int argc, char *argv[])
nl = 0;
optind = 1;
+ optreset = 1;
while ((ch = getopt(argc, argv, "n")) != -1) {
switch(ch) {
case 'n':
@@ -343,6 +344,7 @@ command_read(int argc, char *argv[])
timeout = -1;
prompt = NULL;
optind = 1;
+ optreset = 1;
while ((c = getopt(argc, argv, "p:t:")) != -1) {
switch(c) {
@@ -394,6 +396,7 @@ command_lsdev(int argc, char *argv[])
verbose = 0;
optind = 1;
+ optreset = 1;
while ((ch = getopt(argc, argv, "v")) != -1) {
switch(ch) {
case 'v':
diff --git a/sys/boot/common/ls.c b/sys/boot/common/ls.c
index 493482a7b300..73f805700bf8 100644
--- a/sys/boot/common/ls.c
+++ b/sys/boot/common/ls.c
@@ -1,5 +1,5 @@
/*
- * $Id: ls.c,v 1.5 1998/10/09 07:09:22 msmith Exp $
+ * $Id: ls.c,v 1.6 1998/10/11 10:28:51 peter Exp $
* From: $NetBSD: ls.c,v 1.3 1997/06/13 13:48:47 drochner Exp $
*/
@@ -70,6 +70,7 @@ command_ls(int argc, char *argv[])
fd = -1;
verbose = 0;
optind = 1;
+ optreset = 1;
while ((ch = getopt(argc, argv, "l")) != -1) {
switch(ch) {
case 'l':
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index 5b0d547af069..141a8ed32f66 100644
--- a/sys/boot/common/module.c
+++ b/sys/boot/common/module.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: module.c,v 1.5 1998/09/26 10:51:38 dfr Exp $
+ * $Id: module.c,v 1.6 1998/10/09 23:12:34 peter Exp $
*/
/*
@@ -72,6 +72,7 @@ command_load(int argc, char *argv[])
dofile = 0;
optind = 1;
+ optreset = 1;
typestr = NULL;
while ((ch = getopt(argc, argv, "t:")) != -1) {
switch(ch) {
@@ -133,6 +134,7 @@ command_lsmod(int argc, char *argv[])
verbose = 0;
optind = 1;
+ optreset = 1;
while ((ch = getopt(argc, argv, "v")) != -1) {
switch(ch) {
case 'v':
diff --git a/sys/boot/common/pnp.c b/sys/boot/common/pnp.c
index 56d2655f63e7..74853154ffe7 100644
--- a/sys/boot/common/pnp.c
+++ b/sys/boot/common/pnp.c
@@ -41,6 +41,7 @@ pnp_scan(int argc, char *argv[])
verbose = 0;
optind = 1;
+ optreset = 1;
while ((ch = getopt(argc, argv, "v")) != -1) {
switch(ch) {
case 'v':