summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/bootst
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-05-16 22:52:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-05-16 22:52:10 +0000
commitf60b3cb6d01f37251c358470223a411e2f05a51a (patch)
treea67bd0145ddd98bade6648cecbaa1e7fca00352d /sys/arch/mvme88k/stand/bootst
parent196add41e6dfb1dd4688aa01eb694ae821ec3d98 (diff)
Make standalone binaries compile with -Wall -Werror
Diffstat (limited to 'sys/arch/mvme88k/stand/bootst')
-rw-r--r--sys/arch/mvme88k/stand/bootst/boot.c6
-rw-r--r--sys/arch/mvme88k/stand/bootst/dev_tape.c3
-rw-r--r--sys/arch/mvme88k/stand/bootst/rawfs.c7
3 files changed, 7 insertions, 9 deletions
diff --git a/sys/arch/mvme88k/stand/bootst/boot.c b/sys/arch/mvme88k/stand/bootst/boot.c
index 7c937bcc0c4..6992e8a0266 100644
--- a/sys/arch/mvme88k/stand/bootst/boot.c
+++ b/sys/arch/mvme88k/stand/bootst/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.3 2003/06/02 23:27:52 millert Exp $ */
+/* $OpenBSD: boot.c,v 1.4 2006/05/16 22:52:09 miod Exp $ */
/*-
* Changes Copyright (c) 1998 steve Murphree, Jr.
* Copyright (c) 1982, 1986, 1990, 1993
@@ -38,8 +38,6 @@
#include "stand.h"
#include "libsa.h"
-#define LOADADDR 0x10000
-
extern char *version;
extern int errno;
@@ -47,7 +45,7 @@ int main()
{
static char dnm[32] = "2";
char line[80];
- char *cp, *filename;
+ char *filename;
int bflag = 0;
printf(">> OpenBSD/mvme88k tapeboot [%s]\n", version);
diff --git a/sys/arch/mvme88k/stand/bootst/dev_tape.c b/sys/arch/mvme88k/stand/bootst/dev_tape.c
index a4352b8def7..792ded19ac9 100644
--- a/sys/arch/mvme88k/stand/bootst/dev_tape.c
+++ b/sys/arch/mvme88k/stand/bootst/dev_tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_tape.c,v 1.2 2002/03/14 03:15:57 millert Exp $ */
+/* $OpenBSD: dev_tape.c,v 1.3 2006/05/16 22:52:09 miod Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
@@ -75,7 +75,6 @@ tape_open(f, fname)
struct open_file *f;
char *fname; /* partition number, i.e. "1" */
{
- int error = 0;
int part;
struct mvmeprom_dskio *ti;
diff --git a/sys/arch/mvme88k/stand/bootst/rawfs.c b/sys/arch/mvme88k/stand/bootst/rawfs.c
index db522f8391a..abf23291c35 100644
--- a/sys/arch/mvme88k/stand/bootst/rawfs.c
+++ b/sys/arch/mvme88k/stand/bootst/rawfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rawfs.c,v 1.3 2006/01/16 18:03:54 deraadt Exp $ */
+/* $OpenBSD: rawfs.c,v 1.4 2006/05/16 22:52:09 miod Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -159,14 +159,15 @@ rawfs_get_block(f)
struct open_file *f;
{
struct cfile *fs;
- int error, len;
+ int error;
+ size_t len;
fs = (struct cfile *)f->f_fsdata;
fs->fs_ptr = fs->fs_buf;
twiddle();
error = f->f_dev->dv_strategy(f->f_devdata, F_READ,
- fs->fs_nextblk, RAWFS_BSIZE, fs->fs_buf, &len);
+ fs->fs_nextblk, RAWFS_BSIZE, fs->fs_buf, &len);
if (!error) {
fs->fs_len = len;