summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-01-28 08:45:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-01-28 08:45:14 +0000
commit3967af9471fe3a6034775efd35afea24acea4da2 (patch)
tree76cec2a3c85770c4f9ec7ed3789638edc3129b62 /sys/arch/mvme88k
parent30057f9126e97dabcbf6fbda2fda183a132c35b6 (diff)
Skip first argument on commandline, so we can try to actually boot the
requested kernel rather than ourselves.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/stand/tftpboot/boot.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/mvme88k/stand/tftpboot/boot.c b/sys/arch/mvme88k/stand/tftpboot/boot.c
index c7445ed95c8..8e91c6c62ce 100644
--- a/sys/arch/mvme88k/stand/tftpboot/boot.c
+++ b/sys/arch/mvme88k/stand/tftpboot/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.1 2004/01/26 19:48:34 miod Exp $ */
+/* $OpenBSD: boot.c,v 1.2 2004/01/28 08:45:13 miod Exp $ */
/* $NetBSD: boot.c,v 1.2 1995/09/23 03:42:52 gwr Exp $ */
/*-
@@ -40,17 +40,20 @@
#include "stand.h"
#include "libsa.h"
-int debug;
-int errno;
extern char *version;
-char line[80];
+char line[80];
int
main()
{
char *cp, *file;
- int io, flag, ret;
- int ask = 0;
+ int flag, ret;
+ int ask = 0;
+
+ /* skip first argument, it's our own name */
+ bugargs.arg_start = bugargs.nbarg_start;
+ bugargs.arg_end = bugargs.nbarg_end;
+ *bugargs.arg_end = '\0'; /* just stay on the safe side */
printf("\n>> OpenBSD/mvme88k tftpboot [%s]\n", version);