Changes to compile the next68k bootblocks with
egcs -Wpointer-arith -Wstrict-prototypes This closes pr 6653
This commit is contained in:
parent
35a4f16a60
commit
82347ce33e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cd9660.c,v 1.6 1999/02/11 09:10:44 pk Exp $ */
|
||||
/* $NetBSD: cd9660.c,v 1.7 1999/03/26 15:41:38 dbj Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1996 Wolfgang Solfrank.
|
||||
|
@ -199,22 +199,22 @@ cd9660_open(path, f)
|
|||
|
||||
rc = ENOENT;
|
||||
while (*path) {
|
||||
if ((void *)pp >= buf + psize)
|
||||
if ((caddr_t)pp >= (caddr_t)buf + psize)
|
||||
break;
|
||||
if (isonum_722(pp->parent) != parent)
|
||||
break;
|
||||
if (!pnmatch(path, pp)) {
|
||||
pp = (struct ptable_ent *)((void *)pp + PTSIZE(pp));
|
||||
pp = (struct ptable_ent *)((caddr_t)pp + PTSIZE(pp));
|
||||
ent++;
|
||||
continue;
|
||||
}
|
||||
path += isonum_711(pp->namlen) + 1;
|
||||
parent = ent;
|
||||
bno = isonum_732(pp->block) + isonum_711(pp->extlen);
|
||||
while ((void *)pp < buf + psize) {
|
||||
while ((caddr_t)pp < (caddr_t)buf + psize) {
|
||||
if (isonum_722(pp->parent) == parent)
|
||||
break;
|
||||
pp = (struct ptable_ent *)((void *)pp + PTSIZE(pp));
|
||||
pp = (struct ptable_ent *)((caddr_t)pp + PTSIZE(pp));
|
||||
ent++;
|
||||
}
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ cd9660_open(path, f)
|
|||
if (dirmatch(path, dp))
|
||||
break;
|
||||
psize += isonum_711(dp->length);
|
||||
dp = (struct iso_directory_record *)((void *)dp + isonum_711(dp->length));
|
||||
dp = (struct iso_directory_record *)((caddr_t)dp + isonum_711(dp->length));
|
||||
}
|
||||
|
||||
if (psize >= dsize) {
|
||||
|
@ -326,11 +326,11 @@ cd9660_read(f, start, size, resid)
|
|||
read = off + size;
|
||||
read -= off;
|
||||
bcopy(buf + off, start, read);
|
||||
start += read;
|
||||
start = (caddr_t)start + read;
|
||||
fp->off += read;
|
||||
size -= read;
|
||||
} else {
|
||||
start += ISO_DEFAULT_BLOCK_SIZE;
|
||||
start = (caddr_t)start + ISO_DEFAULT_BLOCK_SIZE;
|
||||
fp->off += ISO_DEFAULT_BLOCK_SIZE;
|
||||
size -= ISO_DEFAULT_BLOCK_SIZE;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dev_net.c,v 1.14 1998/06/29 20:25:59 gwr Exp $ */
|
||||
/* $NetBSD: dev_net.c,v 1.15 1999/03/26 15:41:38 dbj Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -164,13 +164,22 @@ net_close(f)
|
|||
}
|
||||
|
||||
int
|
||||
net_ioctl()
|
||||
net_ioctl(f, cmd, data)
|
||||
struct open_file *f;
|
||||
u_long cmd;
|
||||
void *data;
|
||||
{
|
||||
return EIO;
|
||||
}
|
||||
|
||||
int
|
||||
net_strategy()
|
||||
net_strategy(devdata, rw, blk, size, buf, rsize)
|
||||
void *devdata;
|
||||
int rw;
|
||||
daddr_t blk;
|
||||
size_t size;
|
||||
void *buf;
|
||||
size_t *rsize;
|
||||
{
|
||||
return EIO;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* $NetBSD: dev_net.h,v 1.3 1997/03/15 18:12:14 is Exp $ */
|
||||
/* $NetBSD: dev_net.h,v 1.4 1999/03/26 15:41:38 dbj Exp $ */
|
||||
|
||||
int net_open __P((struct open_file *, ...));
|
||||
int net_close __P((struct open_file *));
|
||||
int net_ioctl();
|
||||
int net_strategy();
|
||||
|
||||
int net_ioctl __P((struct open_file *, u_long, void *));
|
||||
int net_strategy __P((void *, int , daddr_t , size_t, void *, size_t *));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tftp.c,v 1.4 1999/02/28 00:57:07 kim Exp $ */
|
||||
/* $NetBSD: tftp.c,v 1.5 1999/03/26 15:41:38 dbj Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -345,7 +345,7 @@ tftp_read(f, addr, size, resid)
|
|||
bcopy(tftpfile->lastdata.t.th_data + offinblock,
|
||||
addr, count);
|
||||
|
||||
addr += count;
|
||||
addr = (caddr_t)addr + count;
|
||||
tftpfile->off += count;
|
||||
size -= count;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ustarfs.c,v 1.6 1998/12/19 19:24:32 he Exp $ */
|
||||
/* $NetBSD: ustarfs.c,v 1.7 1999/03/26 15:41:38 dbj Exp $ */
|
||||
|
||||
/* [Notice revision 2.2]
|
||||
* Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
|
||||
|
@ -468,7 +468,7 @@ ustarfs_read(f, start, size, resid)
|
|||
seg = infile;
|
||||
memcpy(start, space512 + bufferoffset, seg);
|
||||
ustf->uas_fseek += seg;
|
||||
start += seg;
|
||||
start = (caddr_t)start + seg;
|
||||
size -= seg;
|
||||
}
|
||||
if (resid)
|
||||
|
|
Loading…
Reference in New Issue