-Wall fixes

This commit is contained in:
drochner 1997-09-06 14:08:27 +00:00
parent 3b191b29c0
commit 281398581a
8 changed files with 35 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: devopen.c,v 1.2 1997/04/06 08:40:32 cgd Exp $ */
/* $NetBSD: devopen.c,v 1.3 1997/09/06 14:08:27 drochner Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -39,11 +39,13 @@
*/
#include <lib/libsa/stand.h>
#include <lib/libkern/libkern.h>
/*
* Decode the string 'fname', open the device and return the remaining
* file name if any.
*/
int
devopen(f, fname, file)
struct open_file *f;
const char *fname;

View File

@ -1,4 +1,4 @@
/* $NetBSD: disk.c,v 1.6 1997/04/06 08:40:33 cgd Exp $ */
/* $NetBSD: disk.c,v 1.7 1997/09/06 14:08:28 drochner Exp $ */
/*
* Copyright (c) 1992, 1993
@ -39,12 +39,14 @@
*/
#include <lib/libsa/stand.h>
#include <lib/libkern/libkern.h>
#include <sys/param.h>
#include <sys/disklabel.h>
#include <machine/prom.h>
#include "stand/common/common.h"
#include "disk.h"
struct disk_softc {
@ -68,7 +70,6 @@ diskstrategy(devdata, rw, bn, reqcnt, addrvoid, cnt)
struct disk_softc *sc;
struct partition *pp;
prom_return_t ret;
int s;
if ((reqcnt & 0xffffff) != reqcnt ||
reqcnt == 0)
@ -162,6 +163,7 @@ bad: free(sc, sizeof(struct disk_softc));
return (0);
}
int
diskclose(f)
struct open_file *f;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootxx.c,v 1.3 1997/04/06 08:40:46 cgd Exp $ */
/* $NetBSD: bootxx.c,v 1.4 1997/09/06 14:08:29 drochner Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@ -29,11 +29,14 @@
#include <sys/param.h>
#include "include/prom.h"
#include <machine/prom.h>
#include "stand/common/common.h"
#include "stand/common/bbinfo.h"
extern _end, start;
extern void puts __P((char*)); /* XXX private, does not append '\n' */
struct bbinfoloc desc = {
0xbabefacedeadbeef,
(u_int64_t)&start,

View File

@ -1,3 +1,6 @@
#include <lib/libsa/stand.h>
/* XXX non-standard */
void
puts(s)

View File

@ -1,4 +1,4 @@
/* $NetBSD: dev_net.c,v 1.5 1997/07/22 17:41:01 drochner Exp $ */
/* $NetBSD: dev_net.c,v 1.6 1997/09/06 14:08:31 drochner Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@ -48,7 +48,7 @@
* for use by the NFS open code (NFS/lookup).
*/
#include <stdarg.h>
#include <machine/stdarg.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <net/if.h>
@ -59,8 +59,13 @@
#include <lib/libsa/net.h>
#include <lib/libsa/netif.h>
#include <lib/libsa/bootparam.h>
#include <lib/libsa/nfs.h>
#include "dev_net.h"
#ifndef SUN_BOOTPARAMS
void bootp __P((int));
#endif
extern int debug;
extern int nfs_root_node[]; /* XXX - get from nfs_mount() */
@ -92,6 +97,8 @@ char domainname[FNAME_SIZE];
static int netdev_sock = -1;
static int netdev_opens;
int net_getparams __P((int));
/*
* Called by devopen after it sets f->f_dev to our devsw entry.
* This opens the low-level device and sets f->f_devdata.

View File

@ -1,4 +1,4 @@
/* $NetBSD: devopen.c,v 1.3 1997/04/06 08:41:25 cgd Exp $ */
/* $NetBSD: devopen.c,v 1.4 1997/09/06 14:08:32 drochner Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -44,6 +44,7 @@
* Decode the string 'fname', open the device and return the remaining
* file name if any.
*/
int
devopen(f, fname, file)
struct open_file *f;
const char *fname;
@ -52,7 +53,9 @@ devopen(f, fname, file)
register char *cp;
register char *ncp;
register struct devsw *dp;
#if 0
register int c, i;
#endif
int ctlr = 0, unit = 0, part = 0;
char namebuf[20];
int rc;

View File

@ -7,7 +7,7 @@ getsecs()
{
static long tnsec;
static long lastpcc, wrapsecs;
long curpcc, pccdiff;
long curpcc;
if (tnsec == 0) {
tnsec = 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_prom.c,v 1.9 1997/04/06 08:41:26 cgd Exp $ */
/* $NetBSD: if_prom.c,v 1.10 1997/09/06 14:08:33 drochner Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
@ -38,10 +38,13 @@
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <lib/libsa/stand.h>
#include <lib/libsa/net.h>
#include <lib/libsa/netif.h>
#include "include/prom.h"
#include <machine/prom.h>
#include <lib/libkern/libkern.h>
#include "stand/common/common.h"
#include "stand/common/bbinfo.h"
int prom_probe();
@ -63,7 +66,7 @@ struct netif_stats prom_stats[NENTS(prom_ifs)];
struct netbbinfo netbbinfo = {
0xfeedbabedeadbeef, /* magic number */
0, /* set */
0, 0, 0, 0, 0, 0, /* ether address */
{0, 0, 0, 0, 0, 0}, /* ether address */
0, /* force */
{ 0, }, /* pad2 */
0, /* cksum */