Prepare to set WARNS=2.
This commit is contained in:
parent
5239a6291a
commit
9138cb0511
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: boot.c,v 1.5 2001/10/01 16:59:34 minoura Exp $ */
|
||||
/* $NetBSD: boot.c,v 1.6 2001/10/15 16:13:39 minoura Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Minoura Makoto
|
||||
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <lib/libsa/stand.h>
|
||||
#include <lib/libsa/loadfile.h>
|
||||
#include <lib/libsa/ufs.h>
|
||||
#include <lib/libkern/libkern.h>
|
||||
|
||||
#include "libx68k.h"
|
||||
|
@ -45,7 +46,7 @@
|
|||
#define SRAM_MEMSIZE (*((long*) 0x00ed0008))
|
||||
|
||||
char default_kernel[20] = "sd0a:netbsd";
|
||||
int mpu, bootdev, hostadaptor;
|
||||
int mpu, hostadaptor;
|
||||
int console_device = -1;
|
||||
|
||||
static void help(void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bootmain.c,v 1.1 2001/09/27 10:14:50 minoura Exp $ */
|
||||
/* $NetBSD: bootmain.c,v 1.2 2001/10/15 16:13:40 minoura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994 Takumi Nakamura.
|
||||
|
@ -234,7 +234,7 @@ load_file_ino(ino, fn, addr, header)
|
|||
}
|
||||
|
||||
/* read text and data */
|
||||
ufs_read(&dinode, (void *)addr-sizeof(struct exec), 0,/* XXX */
|
||||
ufs_read(&dinode, ((char *)addr)-sizeof(struct exec), 0,/* XXX */
|
||||
header->a_text+header->a_data);
|
||||
|
||||
/* clear out bss */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fd.c,v 1.1 2001/09/27 10:03:28 minoura Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.2 2001/10/15 16:13:40 minoura Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 MINOURA Makoto.
|
||||
|
@ -32,6 +32,10 @@
|
|||
#include "fdvar.h"
|
||||
#include "iocs.h"
|
||||
|
||||
int fdopen(struct open_file *, int, int);
|
||||
int fdclose(struct open_file*);
|
||||
int fdstrategy(void *devdata, int rw, daddr_t blk, size_t, void*, size_t*);
|
||||
|
||||
|
||||
int
|
||||
fdopen (struct open_file *f, int id, int part)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: libx68k.h,v 1.2 2001/09/29 03:50:13 minoura Exp $ */
|
||||
/* $NetBSD: libx68k.h,v 1.3 2001/10/15 16:13:40 minoura Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Minoura Makoto
|
||||
|
@ -52,7 +52,7 @@ struct sd_softc;
|
|||
int sdstrategy(void *devdata, int rw, daddr_t blk, size_t, void*, size_t*);
|
||||
int sdopen(struct open_file *, ...);
|
||||
int sdclose(struct open_file*);
|
||||
int sdgetbsdpartition(int, int);
|
||||
int sd_getbsdpartition(int, int);
|
||||
int cdstrategy(void *devdata, int rw, daddr_t blk, size_t, void*, size_t*);
|
||||
int cdopen(struct open_file *, ...);
|
||||
int cdclose(struct open_file*);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sdcd.c,v 1.3 2001/10/15 16:07:20 minoura Exp $ */
|
||||
/* $NetBSD: sdcd.c,v 1.4 2001/10/15 16:13:40 minoura Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 MINOURA Makoto.
|
||||
|
@ -38,6 +38,14 @@ static int current_id = -1;
|
|||
static int current_blklen, current_devsize, current_npart;
|
||||
static struct boot_partinfo partitions[MAXPARTITIONS];
|
||||
|
||||
int sdopen(struct open_file *, int, int);
|
||||
int sdclose(struct open_file*);
|
||||
int sdstrategy(void *devdata, int rw, daddr_t blk, size_t, void*, size_t*);
|
||||
int sd_getbsdpartition(int, int);
|
||||
int cdopen(struct open_file *, int, int);
|
||||
int cdclose(struct open_file*);
|
||||
int cdstrategy(void *devdata, int rw, daddr_t blk, size_t, void*, size_t*);
|
||||
|
||||
static int readdisklabel(int);
|
||||
static int check_unit(int);
|
||||
|
||||
|
@ -279,7 +287,7 @@ sdstrategy (void *arg, int rw, daddr_t dblk, size_t size,
|
|||
}
|
||||
nblks = howmany (size, 256 << current_blklen);
|
||||
|
||||
if (dblk & 0x1fffff == 0x1fffff && (nblks & 0xff) == nblks) {
|
||||
if ((dblk & 0x1fffff) == 0x1fffff && (nblks & 0xff) == nblks) {
|
||||
if (rw & F_WRITE)
|
||||
error = IOCS_S_WRITE (start, nblks, current_id,
|
||||
current_blklen, buf);
|
||||
|
|
Loading…
Reference in New Issue