diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-01-16 18:03:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-01-16 18:03:55 +0000 |
commit | 4323351c2394dd8865d0340b0d4bd25aae095198 (patch) | |
tree | 0699b28b05387329be5a50f314de9b2346856fa3 | |
parent | 99ef52ed5e637d59e0e47a296f08dbf91d9fedb1 (diff) |
adjust to size_t changes
-rw-r--r-- | sys/arch/mvme68k/stand/bootst/rawfs.c | 9 | ||||
-rw-r--r-- | sys/arch/mvme68k/stand/bootst/rawfs.h | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/bootst/rawfs.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/bootst/rawfs.h | 6 |
4 files changed, 14 insertions, 13 deletions
diff --git a/sys/arch/mvme68k/stand/bootst/rawfs.c b/sys/arch/mvme68k/stand/bootst/rawfs.c index a7033027829..b119b419ab4 100644 --- a/sys/arch/mvme68k/stand/bootst/rawfs.c +++ b/sys/arch/mvme68k/stand/bootst/rawfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rawfs.c,v 1.3 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: rawfs.c,v 1.4 2006/01/16 18:03:54 deraadt Exp $ */ /* $NetBSD: rawfs.c,v 1.1 1995/10/17 22:58:27 gwr Exp $ */ /* @@ -96,8 +96,8 @@ int rawfs_close(f) int rawfs_read(f, start, size, resid) struct open_file *f; void *start; - u_int size; - u_int *resid; + size_t size; + size_t *resid; { struct file *fs = (struct file *)f->f_fsdata; char *addr = start; @@ -162,7 +162,8 @@ rawfs_get_block(f) struct open_file *f; { struct file *fs; - int error, len; + int error; + size_t len; fs = (struct file *)f->f_fsdata; fs->fs_ptr = fs->fs_buf; diff --git a/sys/arch/mvme68k/stand/bootst/rawfs.h b/sys/arch/mvme68k/stand/bootst/rawfs.h index daac3710be3..2929a9e1d45 100644 --- a/sys/arch/mvme68k/stand/bootst/rawfs.h +++ b/sys/arch/mvme68k/stand/bootst/rawfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rawfs.h,v 1.3 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: rawfs.h,v 1.4 2006/01/16 18:03:54 deraadt Exp $ */ /* $NetBSD: rawfs.h,v 1.1 1995/10/17 22:58:29 gwr Exp $ */ /* @@ -9,8 +9,8 @@ int rawfs_open(char *path, struct open_file *f); int rawfs_close(struct open_file *f); int rawfs_read(struct open_file *f, void *buf, - u_int size, u_int *resid); + size_t size, size_t *resid); int rawfs_write(struct open_file *f, void *buf, - u_int size, u_int *resid); + size_t size, size_t *resid); off_t rawfs_seek(struct open_file *f, off_t offset, int where); int rawfs_stat(struct open_file *f, struct stat *sb); diff --git a/sys/arch/mvme88k/stand/bootst/rawfs.c b/sys/arch/mvme88k/stand/bootst/rawfs.c index fb53e3e7472..db522f8391a 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.2 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: rawfs.c,v 1.3 2006/01/16 18:03:54 deraadt Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -93,8 +93,8 @@ int rawfs_close(f) int rawfs_read(f, start, size, resid) struct open_file *f; void *start; - u_int size; - u_int *resid; + size_t size; + size_t *resid; { struct cfile *fs = (struct cfile *)f->f_fsdata; char *addr = start; diff --git a/sys/arch/mvme88k/stand/bootst/rawfs.h b/sys/arch/mvme88k/stand/bootst/rawfs.h index d25d2fde8da..837bfd67cf9 100644 --- a/sys/arch/mvme88k/stand/bootst/rawfs.h +++ b/sys/arch/mvme88k/stand/bootst/rawfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rawfs.h,v 1.2 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: rawfs.h,v 1.3 2006/01/16 18:03:54 deraadt Exp $ */ /* * Raw file system - for stream devices like tapes. @@ -8,8 +8,8 @@ int rawfs_open(char *path, struct open_file *f); int rawfs_close(struct open_file *f); int rawfs_read(struct open_file *f, void *buf, - u_int size, u_int *resid); + size_t size, size_t *resid); int rawfs_write(struct open_file *f, void *buf, - u_int size, u_int *resid); + size_t size, size_t *resid); off_t rawfs_seek(struct open_file *f, off_t offset, int where); int rawfs_stat(struct open_file *f, struct stat *sb); |