=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/miofile.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- src/usr.bin/aucat/Attic/miofile.c 2011/06/20 20:18:44 1.6 +++ src/usr.bin/aucat/Attic/miofile.c 2012/04/11 06:05:43 1.7 @@ -1,4 +1,4 @@ -/* $OpenBSD: miofile.c,v 1.6 2011/06/20 20:18:44 ratchov Exp $ */ +/* $OpenBSD: miofile.c,v 1.7 2012/04/11 06:05:43 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -37,8 +37,8 @@ }; void miofile_close(struct file *); -unsigned miofile_read(struct file *, unsigned char *, unsigned); -unsigned miofile_write(struct file *, unsigned char *, unsigned); +unsigned int miofile_read(struct file *, unsigned char *, unsigned int); +unsigned int miofile_write(struct file *, unsigned char *, unsigned int); void miofile_start(struct file *); void miofile_stop(struct file *); int miofile_nfds(struct file *); @@ -62,7 +62,7 @@ * open the device */ struct miofile * -miofile_new(struct fileops *ops, char *path, unsigned mode) +miofile_new(struct fileops *ops, char *path, unsigned int mode) { char *siopath; struct mio_hdl *hdl; @@ -82,11 +82,11 @@ return NULL; } -unsigned -miofile_read(struct file *file, unsigned char *data, unsigned count) +unsigned int +miofile_read(struct file *file, unsigned char *data, unsigned int count) { struct miofile *f = (struct miofile *)file; - unsigned n; + unsigned int n; n = mio_read(f->hdl, data, count); if (n == 0) { @@ -111,11 +111,11 @@ } -unsigned -miofile_write(struct file *file, unsigned char *data, unsigned count) +unsigned int +miofile_write(struct file *file, unsigned char *data, unsigned int count) { struct miofile *f = (struct miofile *)file; - unsigned n; + unsigned int n; n = mio_write(f->hdl, data, count); if (n == 0) {