summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/tftpboot/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme88k/stand/tftpboot/boot.c')
-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);