diff options
author | gvf <gvf@cvs.openbsd.org> | 1997-04-17 19:16:43 +0000 |
---|---|---|
committer | gvf <gvf@cvs.openbsd.org> | 1997-04-17 19:16:43 +0000 |
commit | 09e787efd3a90f2c8404b024e8506534d0435733 (patch) | |
tree | 63c06f126b3d013e6a278af00bc8b1702af0d6f3 /sys/arch/mvme68k/stand/libsa | |
parent | e8c24a34e8d5b58a56602041fd2fc405757d77c8 (diff) |
Added -q to return to Motorola bug.
Added loop to prompt for kernel name if it is not found.
Diffstat (limited to 'sys/arch/mvme68k/stand/libsa')
-rw-r--r-- | sys/arch/mvme68k/stand/libsa/libsa.h | 2 | ||||
-rw-r--r-- | sys/arch/mvme68k/stand/libsa/parse_args.c | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/stand/libsa/libsa.h b/sys/arch/mvme68k/stand/libsa/libsa.h index 3657bc00636..eff5fd7988e 100644 --- a/sys/arch/mvme68k/stand/libsa/libsa.h +++ b/sys/arch/mvme68k/stand/libsa/libsa.h @@ -14,5 +14,5 @@ int bugscstrategy __P((void *, int, daddr_t, size_t, void *, size_t *)); void exec_mvme __P((char *, int)); /* parse_args.c */ -void parse_args __P((char **, int *)); +int parse_args __P((char **, int *)); diff --git a/sys/arch/mvme68k/stand/libsa/parse_args.c b/sys/arch/mvme68k/stand/libsa/parse_args.c index 2cdc474c360..25cecfcd533 100644 --- a/sys/arch/mvme68k/stand/libsa/parse_args.c +++ b/sys/arch/mvme68k/stand/libsa/parse_args.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse_args.c,v 1.2 1996/07/27 11:28:15 deraadt Exp $ */ +/* $OpenBSD: parse_args.c,v 1.3 1997/04/17 19:16:42 gvf Exp $ */ /*- * Copyright (c) 1995 Theo de Raadt @@ -56,7 +56,7 @@ struct flags { { 's', RB_SINGLE }, }; -void +int parse_args(filep, flagp) char **filep; @@ -83,6 +83,8 @@ int *flagp; continue; } while ((c = *++ptr) && c != ' ') { + if (c == 'q') + return (-1); for (i = 0; i < sizeof(bf)/sizeof(bf[0]); i++) if (bf[i].c == c) { howto |= bf[i].bit; @@ -92,4 +94,5 @@ int *flagp; } *flagp = howto; *filep = name; + return (0); } |